swagger.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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="https://unpkg.com/swagger-ui-dist@4.3.0/swagger-ui.css" integrity="sha384-pzdBB6iZwPIzBHgXle+9cgvKuMgtWNrBopXkjrWnKCi3m4uJsPPdLQ4IPMqRDirS" crossorigin="anonymous" referrerpolicy="no-referrer" />
  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="https://unpkg.com/swagger-ui-dist@4.3.0/swagger-ui-bundle.js" charset="UTF-8" integrity="sha384-BGJ5JzR5LEl4ETmxXXlZtXtMWj3uQ9jj9/OHe3yrn5rrtAyLOz1SyyzwMfuwZgPc" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  33. <script src="https://unpkg.com/swagger-ui-dist@4.3.0/swagger-ui-standalone-preset.js" charset="UTF-8" integrity="sha384-AWSfISmlS8fS336GXRkpL0Uv6EbCpsFfXDUwmklhbb3SctGSuvXWBcbjERjgf/e4" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  34. <script>
  35. window.onload = function() {
  36. // Begin Swagger UI call region
  37. const ui = SwaggerUIBundle({
  38. url: "/public/api-merged.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. filter: true,
  50. tagsSorter: "alpha",
  51. tryItOutEnabled: true
  52. });
  53. // End Swagger UI call region
  54. window.ui = ui;
  55. };
  56. </script>
  57. </body>
  58. </html>