UNPKG

swagger-gen

Version:

Input your swagger.json and generate a static swagger UI.

21 lines (19 loc) 424 B
<script src='./swagger-json.js' type="text/javascript"></script> <script> window.onload = function() { // Build a system const ui = SwaggerUIBundle({ spec: swaggerJSON, dom_id: '#swagger-ui', presets: [ SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset ], plugins: [ SwaggerUIBundle.plugins.DownloadUrl ], layout: "StandaloneLayout" }) window.ui = ui } </script>