code to pass doneSuccess and doneFailure callback functions. doneSuccess is invoked after successful rendering of swagger-ui and doneFailure is invoke if there is failure in rendering swagger-ui

This commit is contained in:
Arjun Balla
2012-10-23 11:26:20 -07:00
parent 55fd0252b7
commit 1fc4caae2e
2 changed files with 12 additions and 7 deletions

View File

@@ -46,7 +46,10 @@
apiKey:"special-key",
dom_id:"swagger-ui-container",
supportHeaderParams: false,
supportedSubmitMethods: ['get', 'post', 'put']
supportedSubmitMethods: ['get', 'post', 'put'],
doneSuccess: function(){
console.log("DONE!!!")
}
});
window.swaggerUi.load();