index.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. {
  13. box-sizing: border-box;
  14. overflow: -moz-scrollbars-vertical;
  15. overflow-y: scroll;
  16. }
  17. *,
  18. *:before,
  19. *:after
  20. {
  21. box-sizing: inherit;
  22. }
  23. body
  24. {
  25. margin:0;
  26. background: #fafafa;
  27. }
  28. </style>
  29. </head>
  30. <body>
  31. <div id="swagger-ui"></div>
  32. <script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
  33. <script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
  34. <script>
  35. window.onload = function() {
  36. // Begin Swagger UI call region
  37. const ui = SwaggerUIBundle({
  38. url: "swagger.json",
  39. dom_id: '#swagger-ui',
  40. deepLinking: true,
  41. presets: [
  42. SwaggerUIBundle.presets.apis,
  43. SwaggerUIStandalonePreset
  44. ],
  45. plugins: [
  46. SwaggerUIBundle.plugins.DownloadUrl
  47. ],
  48. layout: "StandaloneLayout"
  49. });
  50. // End Swagger UI call region
  51. window.ui = ui;
  52. };
  53. </script>
  54. </body>
  55. </html>