Search code examples
swaggerswashbuckleazure-api-apps

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?


Solution

  • 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