index.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!-- HTML for static distribution bundle build -->
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>GeoServer API Docs</title>
  7. <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
  8. <link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
  9. <style>
  10. html
  11. {
  12. box-sizing: border-box;
  13. overflow: -moz-scrollbars-vertical;
  14. overflow-y: scroll;
  15. }
  16. *,
  17. *:before,
  18. *:after
  19. {
  20. box-sizing: inherit;
  21. }
  22. body {
  23. margin:0;
  24. background: #fafafa;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <div id="swagger-ui"></div>
  30. <script src="./swagger-ui-bundle.js"> </script>
  31. <script src="./swagger-ui-standalone-preset.js"> </script>
  32. <script>
  33. window.onload = function() {
  34. var url = window.location.href.split('#')[1];
  35. // Build a system
  36. const ui = SwaggerUIBundle({
  37. url: url,
  38. dom_id: '#swagger-ui',
  39. presets: [
  40. SwaggerUIBundle.presets.apis,
  41. SwaggerUIStandalonePreset
  42. ],
  43. plugins: [
  44. SwaggerUIBundle.plugins.DownloadUrl
  45. ],
  46. layout: "StandaloneLayout"
  47. });
  48. window.ui = ui;
  49. window.ui.expandAll();
  50. }
  51. console.log(window.location.href.split('#')[1]);
  52. </script>
  53. </body>
  54. </html>