Jeff
Jeff

Reputation: 347

On a swagger-UI page, can I default the json to explore with a query string parameter?

I have a swagger-ui/index.html I would like to be able to publish URLs to various APIs using the same html. Is here a way to pass in the json to be explored via a query string parameter?

Upvotes: 1

Views: 195

Answers (1)

Jeff
Jeff

Reputation: 347

Yes, this can be done by passing in the json path using ../swagger-ui/?url=http://something.com/swagger.json

Upvotes: 1

Related Questions