swagger ui - Customising the index.html file? -


i've been messing around spring boot , pointed @ swagger way of documenting rest api.

i managed working except can't figure out how customise index.html file. whenever go http://localhost:8080/index.html loads default pet store search bar 1 , not 1 customised.

i've gone through tonne of pages online , tried hundred things nothing has worked.

any appreciated.

in swagger index.html code have looks this:

$(function () {     var url = window.location.search.match(/url=([^&]+)/);     var patharray = location.href.split( '/' );     var protocol = patharray[0];     var host = patharray[2];     var base = protocol + '//' + host;     if (url && url.length > 1) {         url = url[1];     } else {         url = base + "/api-docs";     }     window.swaggerui = new swaggerui({         url: url,         ... 

this loads base, json code swagger api @ /api-docs might understand.


Comments