index.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!--
  2. * @Author: YKH
  3. * @Date: 2021-12-28 14:25:14
  4. * @LastEditTime: 2021-12-28 15:46:09
  5. * @Description:
  6. * @FilePath: \cool-admin\cool-admin-midway-master\public\swagger\index.html
  7. -->
  8. <!-- HTML for static distribution bundle build -->
  9. <!DOCTYPE html>
  10. <html lang="en">
  11. <head>
  12. <meta charset="UTF-8">
  13. <title>接口文档</title>
  14. <link rel="stylesheet" type="text/css" href="./swagger-ui.css" />
  15. <link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
  16. <link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
  17. <style>
  18. html {
  19. box-sizing: border-box;
  20. overflow: -moz-scrollbars-vertical;
  21. overflow-y: scroll;
  22. }
  23. *,
  24. *:before,
  25. *:after {
  26. box-sizing: inherit;
  27. }
  28. body {
  29. margin: 0;
  30. background: #fafafa;
  31. }
  32. </style>
  33. </head>
  34. <body>
  35. <div id="swagger-ui"></div>
  36. <script src="./swagger-ui-bundle.js" charset="UTF-8">
  37. </script>
  38. <script src="./swagger-ui-standalone-preset.js" charset="UTF-8">
  39. </script>
  40. <script>
  41. window.onload = function() {
  42. // Begin Swagger UI call region
  43. const ui = SwaggerUIBundle({
  44. url: "./swagger.json",
  45. dom_id: '#swagger-ui',
  46. deepLinking: true,
  47. presets: [
  48. SwaggerUIBundle.presets.apis,
  49. SwaggerUIStandalonePreset
  50. ],
  51. plugins: [
  52. SwaggerUIBundle.plugins.DownloadUrl
  53. ],
  54. layout: "StandaloneLayout"
  55. });
  56. // End Swagger UI call region
  57. window.ui = ui;
  58. };
  59. </script>
  60. </body>
  61. </html>