Swagger-ui configuration with jersey

I'm trying to customize Swagger + Swagger-ui + Jersey. I have a Tomcat web service .

I was able to integrate swagger with Jersey.

To integrate swagger-uibased swagger-ui documentation, I need to put the files under /dist/in my webapp directory and modify the file index.htmlto point to mine swagger.json. However, I want to use swagger-ui webjarfound here

https://mvnrepository.com/artifact/org.webjars/swagger-ui/2.2.6

I was not able to figure out how to do this.

0
source share
1 answer

I tried to use the same dependency on my project and did not find a solution to change it. I have done this:

1) "doc" "webapp"

2) Swagger-ui zip file

3) dist "webapp/doc"

4) index.html, "webapp/doc"

.

0

Source: https://habr.com/ru/post/1689839/


All Articles