0
votes

How can i access the generated swagger-ui.html ? Or index.html I cant seem to find this file in my project. Aghhhh!

2
Please paste some code so that we can understand the problem better.Sampada
Also, have you downloaded the swagger-dist from github? Depending on the version you want to use, it will be a link like this - github.com/swagger-api/swagger-ui/tree/master/distSampada
I just want to access the files generated in webjars. No code will explain my problem.Ronny Shibley
This is exactly what i ended up doing. I thought there would be a better way to override swagger-ui.htmlRonny Shibley
Please add it as an answer to your own question so that it can help other. Thanks.Sampada

2 Answers

0
votes

I ended up pulling the swagger-ui dist files from git

https://github.com/swagger-api/swagger-ui/tree/master/dist

I placed them inside public directory and modified swagger-ui.html

0
votes

For the library setup which you have mentioned, the following will be the URL to access the UI -

PROTOCOL://HOST:PORT/CONTEXT_NAME/swagger-ui.html

Eg: http://localhost:8083/xms/swagger-ui.html