How can i access the generated swagger-ui.html ? Or index.html I cant seem to find this file in my project. Aghhhh!
Asked
Active
Viewed 329 times
0
-
Please paste some code so that we can understand the problem better. – Sampada May 09 '16 at 05:44
-
Also, have you downloaded the swagger-dist from github? Depending on the version you want to use, it will be a link like this - https://github.com/swagger-api/swagger-ui/tree/master/dist – Sampada May 09 '16 at 05:46
-
I just want to access the files generated in webjars. No code will explain my problem. – Ronny Shibley May 09 '16 at 05:46
-
This is exactly what i ended up doing. I thought there would be a better way to override swagger-ui.html – Ronny Shibley May 09 '16 at 05:48
-
Please add it as an answer to your own question so that it can help other. Thanks. – Sampada May 09 '16 at 05:49
2 Answers
0
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

Ronny Shibley
- 2,030
- 22
- 25
0
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

Srikanta
- 1,145
- 2
- 12
- 22