Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location of swagger.json when created with Swashbuckle

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?

like image 578
Richard210363 Avatar asked Dec 01 '16 17:12

Richard210363


1 Answers

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

like image 168
Alex Karcher - msft Avatar answered Oct 13 '22 15:10

Alex Karcher - msft