(no commit message)
[paste/947.git] / swagger-initializer.js
1 window.onload = function() {\r
2   //<editor-fold desc="Changeable Configuration Block">\r
3 \r
4   // the following lines will be replaced by docker/configurator, when it runs in a docker-container\r
5   window.ui = SwaggerUIBundle({\r
6     url: "../api.yaml",\r
7     dom_id: '#swagger-ui',\r
8     deepLinking: true,\r
9     // HERE:\r
10     persistAuthorization: true,\r
11     presets: [\r
12       SwaggerUIBundle.presets.apis,\r
13       SwaggerUIStandalonePreset\r
14     ],\r
15     plugins: [\r
16       SwaggerUIBundle.plugins.DownloadUrl\r
17     ],\r
18     layout: "StandaloneLayout"\r
19   });\r
20 \r
21   //</editor-fold>\r
22 };\r