removed unnecessary node_modules, updated some of the logic from pull request for docExpansion, onComplete and onFailure param support

This commit is contained in:
Ayush Gupta
2012-11-05 11:17:25 +05:30
parent b05f6f9cb5
commit 4a77d5a20f
55 changed files with 21 additions and 4227 deletions

View File

@@ -47,13 +47,16 @@
dom_id:"swagger-ui-container",
supportHeaderParams: false,
supportedSubmitMethods: ['get', 'post', 'put'],
doneSuccess: function(){
console.log("DONE!!!")
onComplete: function(){
if(console) console.log("Loaded SwaggerUI")
},
// "" - default behavior
// list - list view of all resources
// expand - expanded view of all resources
docStyle: ""
onFailure: function(data) {
if(console) {
console.log("Unable to Load SwaggerUI");
console.log(data);
}
},
docExpansion: "list"
});
window.swaggerUi.load();