We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Swagger and Visual Studio / AutoRest

Received Response
23
Views
7
Comments
edited Mar 1, 2019 1:48PM in Integrations and APIs 7 comments

Summary

Generate a C# REST client from swagger

Content

Hi,

I've been trying to generate a REST client from https://docs.oracle.com/en/cloud/saas/service/19a/cxsvc/swagger.json using both Visual Studio (Add -> REST API Client) and the latest version of AutoRest available from npmjs: https://www.npmjs.com/package/autorest.

In both cases the Oracle Service Cloud swagger file does not pass the OpenAPI validation and hence the client can't be generated.

I experienced similar results with https://editor.swagger.io, so I'm wondering how to make a proper use of https://docs.oracle.com/en/cloud/saas/service/19a/cxsvc/swagger.json

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!