-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathswagger-ui.html
44 lines (39 loc) · 1.47 KB
/
swagger-ui.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{title} | API Docs</title>
<link rel="stylesheet" type="text/css" href="{cdn}/swagger-ui.css" />
<link rel="stylesheet" type="text/css" href="{cdn}/index.css" />
<link rel="icon" type="image/png" href="{cdn}/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="{cdn}/favicon-16x16.png" sizes="16x16" />
</head>
<body>
<div id="swagger-ui"></div>
<script src="{cdn}/swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="{cdn}/swagger-ui-standalone-preset.js" charset="UTF-8"> </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: "{openapi}",
dom_id: '#swagger-ui',
deepLinking: true,
layout: "BaseLayout",
showExtensions: true,
showCommonExtensions: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
});
//</editor-fold>
};
</script>
</body>
</html>