$(function () {
window.swaggerUi = new SwaggerUi({
discoveryUrl:"../resources.json",
apiKey:"",
dom_id:"swagger-ui-container",
supportHeaderParams: false,
supportedSubmitMethods: ['get', 'post', 'put', 'patch',
'delete'],
onComplete: function(swaggerApi, swaggerUi){
if(console) {
console.log("Loaded SwaggerUI")
console.log(swaggerApi);
console.log(swaggerUi);
}
},
onFailure: function(data) {
if(console) {
console.log("Unable to Load SwaggerUI");
console.log(data);
}
},
docExpansion: "none"
});
window.swaggerUi.load();
});
Local system working fine but once my all code moved to live Linux server
it generated error like below.
Unable to Load SwaggerUI
index.html:61 500 : Internal Server Error ../resources.json
swagger.js:122 Uncaught 500 : Internal Server Error ../resources.json
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.