59 lines
2.3 KiB
PHTML
59 lines
2.3 KiB
PHTML
<!-- HTML for static distribution bundle build -->
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Swagger UI</title>
|
|
<link rel="stylesheet" type="text/css" href="${make_media_url('css/swagger-ui.css', 'apidoc2')}" />
|
|
<link rel="stylesheet" type="text/css" href="${make_media_url('css/index.css', 'apidoc2')}" />
|
|
<!--<link rel="icon" type="image/png" href="${make_media_url('images/favicon-32x32.png', 'apidoc')}" sizes="32x32" />
|
|
<link rel="icon" type="image/png" href="${make_media_url('images/favicon-16x16.png', 'apidoc')}" sizes="16x16" />-->
|
|
<!--<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui.css">-->
|
|
</head>
|
|
|
|
<body>
|
|
<div id="swagger-ui"></div>
|
|
<script src="${make_media_url('js/swagger-ui-bundle.js', 'apidoc2')}" charset="UTF-8"> </script>
|
|
<script src="${make_media_url('js/swagger-ui-standalone-preset.js', 'apidoc2')}" charset="UTF-8"> </script>
|
|
<!--<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui-bundle.js"></script>-->
|
|
<script>
|
|
window.onload = function() {
|
|
//<editor-fold desc="Changeable Configuration Block">
|
|
|
|
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
|
|
/*window.ui = SwaggerUIBundle({
|
|
url: "",
|
|
dom_id: '#swagger-ui',
|
|
deepLinking: true,
|
|
presets: [
|
|
SwaggerUIBundle.presets.apis,
|
|
SwaggerUIStandalonePreset
|
|
],
|
|
plugins: [
|
|
SwaggerUIBundle.plugins.DownloadUrl
|
|
],
|
|
layout: "StandaloneLayout"
|
|
});*/
|
|
const ui = SwaggerUIBundle({
|
|
url: "${url_for('apidoc_app.json_spec', module=module)}",
|
|
"dom_id": "#swagger-ui",
|
|
"layout": "BaseLayout",
|
|
//"deepLinking": true,
|
|
"showExtensions": true,
|
|
"showCommonExtensions": true,
|
|
//oauth2RedirectUrl: window.location.origin + '/docs/oauth2-redirect',
|
|
presets: [
|
|
SwaggerUIBundle.presets.apis,
|
|
SwaggerUIBundle.SwaggerUIStandalonePreset
|
|
],
|
|
plugins: [
|
|
SwaggerUIBundle.plugins.DownloadUrl
|
|
],
|
|
})
|
|
|
|
//</editor-fold>
|
|
};
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|