Tuesday, April 14, 2020

Convert Swagger UI/View to Swagger Json



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/index.html  --->

 http/https://xyz.com/module1/swagger/v1/swagger.json



No comments:

Post a Comment

JMeter Simple Controller

  Simple Controller is just a  container  for user request.