swagger-initializer.js 597 B

123456789101112131415161718192021
  1. window.onload = function() {
  2. //<editor-fold desc="Changeable Configuration Block">
  3. // the following lines will be replaced by docker/configurator, when it runs in a docker-container
  4. window.ui = SwaggerUIBundle({
  5. // url: "https://petstore.swagger.io/v2/swagger.json",
  6. url: "http://localhost:8201/swagger/swagger.json",
  7. dom_id: '#swagger-ui',
  8. deepLinking: true,
  9. presets: [
  10. SwaggerUIBundle.presets.apis,
  11. SwaggerUIStandalonePreset
  12. ],
  13. plugins: [
  14. SwaggerUIBundle.plugins.DownloadUrl
  15. ],
  16. layout: "StandaloneLayout"
  17. });
  18. //</editor-fold>
  19. };