How can we create a client in the language that fits our needs?

Modified on: Fri, 28 May, 2021 at 12:37 PM

Print

The documentation tool, swagger, provides an online editor through which you can easily generate a client in your language of choice.


a. Just navigate to https://editor.swagger.io which will display an online editor window that is split into two panes. The pane on the left is for an OpenAPI specification whereas the pane on the right will show an interactive interface using that spec.

b. Load up the PRISMA spec by clicking on the "File" drop-down at the top and then clicking on "Import URL":



The current version of the Swagger specification for the PRISMA API is available from the URL https://platform.prisma-capacity.eu/api/v2/swagger.json..


c. Paste the URL into the dialogue that appears after clicking "Import URL" and the left pane will populate with the PRISMA API specification.


d. Click on the "Generate Client" dropdown and choose the language of your preference. (e.g. C#)


e. Alternatively, you may click on the above URL, copy the content, paste it to a notepad file, save it and import it to swagger, by clicking on "Import File:"


This will download a zip file containing a generated client for the language you have chosen. Extract this anywhere you would like so you can work with it.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.