fix swagger ui
This commit is contained in:
@@ -1,19 +1,28 @@
|
|||||||
<!-- HTML for static distribution bundle build -->
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Swagger UI</title>
|
<title>Swagger UI</title>
|
||||||
<link rel="stylesheet" type="text/css" href="swagger-ui.css" />
|
<link rel="stylesheet" type="text/css" href="swagger-ui.css">
|
||||||
<link rel="stylesheet" type="text/css" href="index.css" />
|
<link rel="stylesheet" type="text/css" href="index.css">
|
||||||
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
|
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32">
|
||||||
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
|
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16">
|
||||||
</head>
|
</head>
|
||||||
|
<body>
|
||||||
<body>
|
<div id="swagger-ui">
|
||||||
<div id="swagger-ui"></div>
|
<script src="swagger-ui-bundle.js"></script>
|
||||||
<script src="swagger-ui-bundle.js" charset="UTF-8"> </script>
|
<script>
|
||||||
<script src="swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
|
window.ui = SwaggerUIBundle({
|
||||||
<script src="swagger-initializer.js" charset="UTF-8"> </script>
|
url: "/api/openapi.json",
|
||||||
</body>
|
dom_id: '#swagger-ui',
|
||||||
|
deepLinking: true,
|
||||||
|
presets: [
|
||||||
|
SwaggerUIBundle.presets.apis,
|
||||||
|
],
|
||||||
|
plugins: [],
|
||||||
|
layout: "BaseLayout"
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
window.onload = function () {
|
|
||||||
//<editor-fold desc="Changeable Configuration Block">
|
|
||||||
|
|
||||||
const HideInfoUrlPartsPlugin = () => {
|
|
||||||
return {
|
|
||||||
wrapComponents: {
|
|
||||||
InfoUrl: () => () => null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
|
|
||||||
window.ui = SwaggerUIBundle({
|
|
||||||
url: "/api/openapi.json",
|
|
||||||
dom_id: '#swagger-ui',
|
|
||||||
deepLinking: true,
|
|
||||||
presets: [
|
|
||||||
SwaggerUIBundle.presets.apis,
|
|
||||||
SwaggerUIStandalonePreset
|
|
||||||
],
|
|
||||||
plugins: [
|
|
||||||
SwaggerUIBundle.plugins.DownloadUrl,
|
|
||||||
HideInfoUrlPartsPlugin,
|
|
||||||
],
|
|
||||||
layout: "StandaloneLayout"
|
|
||||||
});
|
|
||||||
|
|
||||||
//</editor-fold>
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user