Swagger component for displaying custom APIs

Swagger component for displaying custom APIs

avatar
(anonymous user)

I found the built in swagger site for the PU API and it is great. But i would like to know if this component is exposed so that i can use it to display a custom API specification? I have a vendor API json file that they don’t host as a swagger site and i would like to make it available to our app teams internally for reference.

Product: PowerShell Universal
Version: 5.0.7


All Comments (2)

avatar

It is natively supported!

If you go to API -> Documentation, you can set up your own API documentation. The URL will be relative to the base URL for your site, so your documentation url will likely start with api/. From there, you can click the
7a01db98406c7b21370f365f20d4806d9239d6ce

icon to see the swagger UI that is created.

Then, you can also see this in the top right corner to view other definitions from within the same Swagger view:
86ef038286ad90eb70ff76ac5e130bd0fa732d47


Hope this helps!
ZG

86ef038286ad90eb70ff76ac5e130bd0fa732d47.png

7a01db98406c7b21370f365f20d4806d9239d6ce.png

avatar

Thank you. i will look at this.