|
|
@ -11,26 +11,6 @@ |
|
|
|
<div id="swagger-ui"></div> |
|
|
|
<script src="/swagger-ui/swagger-ui-bundle.js" charset="UTF-8"> </script> |
|
|
|
<script src="/swagger-ui/swagger-ui-standalone-preset.js" charset="UTF-8"> </script> |
|
|
|
<script${nonce_attr}> |
|
|
|
window.onload = function() { |
|
|
|
const uiConfig = ${ui_config}; |
|
|
|
Object.assign(uiConfig, { |
|
|
|
presets: [ |
|
|
|
SwaggerUIBundle.presets.apis, |
|
|
|
SwaggerUIStandalonePreset, |
|
|
|
], |
|
|
|
plugins: [ |
|
|
|
SwaggerUIBundle.plugins.DownloadUrl, |
|
|
|
], |
|
|
|
}); |
|
|
|
const oauthConfig = ${oauth_config}; |
|
|
|
// Build a system |
|
|
|
const ui = SwaggerUIBundle(uiConfig); |
|
|
|
if (oauthConfig) { |
|
|
|
ui.initOAuth(oauthConfig); |
|
|
|
} |
|
|
|
window.ui = ui; |
|
|
|
} |
|
|
|
</script> |
|
|
|
<script src="/swagger-ui/index.js" charset="UTF-8"> </script> |
|
|
|
</body> |
|
|
|
</html> |