Hi
I want to make the swagger-ui 'url' to dynamic one. the url which was currently mentioned in the index.html file of Swagger-UI.
currently i was doing like below :
index.html of swagger-ui:
$(function () {
var url = window.location.search.match(/url=([^&]+)/);
alert(url);
if (url && url.length > 1) {
url = url[1];
} else {
}
window.swaggerUi = new SwaggerUi({
.....
But i dont want to hardcode it..!
Looking for :
url = dynamicPath + "/services/api-docs"
what changes i need to there in index.html or any other file changes are required?