index.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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"> </script>
  33. <script src="./swagger-ui-standalone-preset.js"> </script>
  34. <script>
  35. window.onload = function() {
  36. // Begin Swagger UI call region
  37. const ui = SwaggerUIBundle({
  38. url: "../api.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: "BaseLayout",
  49. tagsSorter:'alpha',
  50. operationsSorter:'alpha',
  51. filter: true,
  52. syntaxHighlight: {
  53. 'activate':true,
  54. 'theme':'monokai'
  55. },
  56. defaultModelRendering:'example'
  57. })
  58. // End Swagger UI call region
  59. window.ui = ui
  60. }
  61. </script>
  62. </body>
  63. </html>