index.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!-- HTML for static distribution bundle build -->
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>Swagger UI</title>
  7. <link rel="stylesheet" type="text/css" href="./swagger-ui.css">
  8. <link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
  9. <link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
  10. <style>
  11. html {
  12. box-sizing: border-box;
  13. overflow: -moz-scrollbars-vertical;
  14. overflow-y: scroll;
  15. }
  16. *,
  17. *:before,
  18. *:after {
  19. box-sizing: inherit;
  20. }
  21. body {
  22. margin: 0;
  23. background: #fafafa;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div id="swagger-ui"></div>
  29. <script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
  30. <script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
  31. <script>
  32. window.onload = function () {
  33. // Begin Swagger UI call region
  34. const ui = SwaggerUIBundle({
  35. url: "http://localhost:3000/swagger.json",
  36. dom_id: '#swagger-ui',
  37. deepLinking: true,
  38. presets: [
  39. SwaggerUIBundle.presets.apis,
  40. SwaggerUIStandalonePreset
  41. ],
  42. plugins: [
  43. SwaggerUIBundle.plugins.DownloadUrl
  44. ],
  45. layout: "StandaloneLayout"
  46. })
  47. // End Swagger UI call region
  48. window.ui = ui
  49. }
  50. </script>
  51. </body>
  52. </html>