Do the Nutanix / Prism Gateway API's have an endpoint for the swagger.json that represents them? I would like to use the swagger code-gen project to generate a client for Nutanix in a different language.
Thanks,
Colter
Best answer by Jon
Hey @wryfi - thanks for the comments. Your timing literally couldn't be any more excellent on this.
I'd love to start an offline thread with you, please feel free to drop me an email - jon@nutanix.com, if you'd like, as I think we could put our heads together and do some really cool stuff. We could also connect via slack, as we're really trying to maintain an open door policy.
That said - For your benefit, and everyone elses:
Take a look at the v3 API, which all around is a much, much, much better designed API. For example, the swagger spec is super easy to access, and is for sure valid.
The v3 API is tech preview as of 5.5.0.x, but is about to go GA with the very next release, which is literally on the "loading dock" waiting to be launched within the next several days *(knock on wood)*. Among other things, we've also exposed this API out of Prism Central in addition to Prism Element, and greatly extended the amount of endpoints and methods that are exposed in the next version.
If you are planning to generate any of your code dynamically, which is highly suggested and encouraged, you can access the raw swagger.json from the API Explorer under the v3 menu, it gives you the link right at the top of the page. We’re OpenAPI 2.0 compliant with v3, so you can use tools like swagger codegen against it if you’d like.
In addition to all that, we've recently-ish launched developer.nutanix.com, which is our new Developer Portal, specifically here: http://developer.nutanix.com/reference/prism_central/v3/
View original
I'd love to start an offline thread with you, please feel free to drop me an email - jon@nutanix.com, if you'd like, as I think we could put our heads together and do some really cool stuff. We could also connect via slack, as we're really trying to maintain an open door policy.
That said - For your benefit, and everyone elses:
Take a look at the v3 API, which all around is a much, much, much better designed API. For example, the swagger spec is super easy to access, and is for sure valid.
The v3 API is tech preview as of 5.5.0.x, but is about to go GA with the very next release, which is literally on the "loading dock" waiting to be launched within the next several days *(knock on wood)*. Among other things, we've also exposed this API out of Prism Central in addition to Prism Element, and greatly extended the amount of endpoints and methods that are exposed in the next version.
If you are planning to generate any of your code dynamically, which is highly suggested and encouraged, you can access the raw swagger.json from the API Explorer under the v3 menu, it gives you the link right at the top of the page. We’re OpenAPI 2.0 compliant with v3, so you can use tools like swagger codegen against it if you’d like.
In addition to all that, we've recently-ish launched developer.nutanix.com, which is our new Developer Portal, specifically here: http://developer.nutanix.com/reference/prism_central/v3/