Location of swagger.json when created with Swashbuckle

Richard210363 picture Richard210363 · Dec 1, 2016 · Viewed 14.2k times · Source

When I build and run my Azure Web API I get a nice swaggerUI.

I want to add the API to Azure API Management.

For this I need either a URL or the swagger.json file.

Where does Swashbuckle put the file?

Or if it generates it on the fly, how can I get access to it?

Answer

Alex Karcher - msft picture Alex Karcher - msft · Dec 1, 2016

The Swagger.json file should be accessible at [yourwebsitedomain]/swagger/docs/v1

There should also be a link to the swagger.json file at the top of the Swagger UI