You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.3 KiB

  1. <!DOCTYPE html>
  2. <!-- V1.0.4-->
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>Swagger UI</title>
  7. <link rel="stylesheet" type="text/css" href="dist/swagger-ui.css" />
  8. <link rel="icon" type="image/png" href="dist/favicon-32x32.png" sizes="32x32" />
  9. <link rel="icon" type="image/png" href="dist/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="dist/swagger-ui-bundle.js" charset="UTF-8"> </script>
  30. <script src="dist/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: "swagger.yaml",
  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>