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.

57 lines
1.3 KiB

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