webjars - How to customize swagger-ui? -
i'm learning swagger, trying make little change , see if can reflected on index page. starting point index.html page, made copy of jar file :
c:\swagger-ui\target\swagger-ui-2.1.0-m1\web-inf\lib\swagger-ui-2.1.8-m1.jar
and saved new page index2.html, added line html content inside, , added above jar file.
but i've noticed has .gz file original index.html file, don't know purpose, made file called index2.html.gz , added above jar file, run jetty server, , loaded index.html : http://localhost:8080/swagger-ui/webjars/swagger-ui/2.1.8-m1/index.html
it showed alright, tried load : index2.html, couldn't find page, why ? should include show @ : http://localhost:8080/swagger-ui/webjars/swagger-ui/2.1.8-m1/index2.html
the error message :
http error 404
problem accessing /swagger-ui/webjars/swagger-ui/2.1.8-m1/index2.html. reason:
not found
what trying change in swagger-ui? have been messing around branding/customizing swagger myself. if take @ swagger-ui.js file see 30,000+ lines of code , poorly organized. using handlebars , backbone.js not familiar with. added custom features manipulating dom once page had been rendered. did writing js file added index.html.
Comments
Post a Comment