FINERACT-842 Made TRY-IT swagger button work

This commit is contained in:
Manthan Surkar
2020-07-20 11:53:23 +02:00
committed by Michael Vorburger ⛑️
parent b4621b2a71
commit a84edce73b
4 changed files with 46 additions and 21 deletions
@@ -39,7 +39,7 @@
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
url: "fineract.json",
url: "fineract.yaml",
dom_id: '#swagger-ui',
deepLinking: true,
filter: '',
@@ -50,11 +50,15 @@
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "BaseLayout"
layout: "BaseLayout",
onComplete: function() {
ui.preauthorizeBasic("basicAuth", "mifos", "password");
ui.preauthorizeApiKey("tenantid", "default");
}
})
// End Swagger UI call region
window.ui = ui
}
</script>
</body>