We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa4998f commit e0a891bCopy full SHA for e0a891b
2 files changed
openapi_ui_bundles/swagger_ui/vendor/index.html
@@ -14,6 +14,22 @@
14
<div id="swagger-ui"></div>
15
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
16
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
17
- <script src="./swagger-initializer.js" charset="UTF-8"> </script>
+ <script>
18
+ window.onload = function() {
19
+ window.ui = SwaggerUIBundle({
20
+ url: "https://petstore.swagger.io/v2/swagger.json",
21
+ dom_id: '#swagger-ui',
22
+ deepLinking: true,
23
+ presets: [
24
+ SwaggerUIBundle.presets.apis,
25
+ SwaggerUIStandalonePreset
26
+ ],
27
+ plugins: [
28
+ SwaggerUIBundle.plugins.DownloadUrl
29
30
+ layout: "StandaloneLayout"
31
+ });
32
+ };
33
+ </script>
34
</body>
35
</html>
openapi_ui_bundles/swagger_ui/vendor/swagger-initializer.js
0 commit comments