Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When trying to open Swagger-UI getting only a json Response

I am getting the following response when requesting for Swagger doc in a Web API project,even the same response getting from Azure.

enter image description here

Can any one help me to get the Swagger UI.

like image 236
Debendra Dash Avatar asked Oct 28 '25 04:10

Debendra Dash


2 Answers

Perhaps try to request the Swagger-UI through a different url, eg.../swagger/index.html.

like image 103
Zen Avatar answered Oct 30 '25 11:10

Zen


Check if swagger is configured to use any custom route or prefix. In this case the UI URL would be url:port/route-prefix/index.html. Route prefix empty = url:port/index.html.

like image 33
malipense Avatar answered Oct 30 '25 10:10

malipense



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!