|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html lang="en">
|
| 3 | + |
3 | 4 | <head>
|
4 | 5 | <meta charset="UTF-8">
|
5 | 6 | <title>"##title##"</title>
|
6 | 7 | <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.51.0/swagger-ui.css" />
|
7 | 8 | <link rel="icon" type="image/png" href="https://upload.wikimedia.org/wikipedia/commons/a/ab/Swagger-logo.png" />
|
8 | 9 | <style>
|
9 |
| - html { box-sizing: border-box; overflow: -moz-scrollbars-vertical; overflow-y: scroll; } |
| 10 | + html { |
| 11 | + box-sizing: border-box; |
| 12 | + overflow: -moz-scrollbars-vertical; |
| 13 | + overflow-y: scroll; |
| 14 | + } |
10 | 15 |
|
11 |
| - *, *:before, *:after { box-sizing: inherit; } |
| 16 | + *, |
| 17 | + *:before, |
| 18 | + *:after { |
| 19 | + box-sizing: inherit; |
| 20 | + } |
12 | 21 |
|
13 |
| - body { margin: 0; background: #fafafa; } |
| 22 | + body { |
| 23 | + margin: 0; |
| 24 | + background: #fafafa; |
| 25 | + } |
14 | 26 | </style>
|
15 | 27 | </head>
|
| 28 | + |
16 | 29 | <body>
|
17 | 30 | <div id="swagger-ui"></div>
|
18 |
| - <script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.51.0/swagger-ui-bundle.js" charset="UTF-8"></script> |
19 |
| - <script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.51.0/swagger-ui-standalone-preset.js" charset="UTF-8"></script> |
| 31 | + |
| 32 | + <script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.51.0/swagger-ui-bundle.js" charset="UTF-8"> </script> |
| 33 | + <script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3.51.0/swagger-ui-standalone-preset.js" |
| 34 | + charset="UTF-8"> </script> |
20 | 35 | <script>
|
21 | 36 | window.onload = function () {
|
22 |
| - window.ui = SwaggerUIBundle({ |
| 37 | + const ui = SwaggerUIBundle({ |
23 | 38 | spec: "##docs##",
|
24 | 39 | dom_id: '#swagger-ui',
|
25 | 40 | deepLinking: true,
|
26 |
| - presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset], |
27 |
| - plugins: [SwaggerUIBundle.plugins.DownloadUrl], |
| 41 | + presets: [ |
| 42 | + SwaggerUIBundle.presets.apis, |
| 43 | + SwaggerUIStandalonePreset |
| 44 | + ], |
| 45 | + plugins: [ |
| 46 | + SwaggerUIBundle.plugins.DownloadUrl |
| 47 | + ], |
28 | 48 | layout: "StandaloneLayout"
|
29 |
| - }) |
30 |
| - } |
| 49 | + }); |
| 50 | + |
| 51 | + window.ui = ui; |
| 52 | + }; |
31 | 53 | </script>
|
32 | 54 | </body>
|
| 55 | + |
33 | 56 | </html>
|
0 commit comments