https://stackoverflow.com/questions/21336488/generate-webapi-documentation-in-swagger-json-format
As stated, /swagger takes you to the swagger UI.
If you're using Swashbuckle, then /swagger/docs/v1 should take you to the swagger.json file - I found this using Chrome Dev tools.
Edit: if you're using Swashbuckle.AspNetCore, then the url is slightly different - /swagger/v1/swagger.json
http/https://xyz.com/module1/swagger/v1/swagger.json
No comments:
Post a Comment