| Matthias Andreas Benkard | 3c18a08 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 1 | window.onload = function() { |
| 2 | // Begin Swagger UI call region | ||||
| 3 | const ui = SwaggerUIBundle({ | ||||
| 4 | urls: [{url: "/api/openapi.yaml", name: "mailcow API"}], | ||||
| 5 | dom_id: '#swagger-ui', | ||||
| 6 | deepLinking: true, | ||||
| 7 | presets: [ | ||||
| 8 | SwaggerUIBundle.presets.apis, | ||||
| 9 | SwaggerUIStandalonePreset | ||||
| 10 | ], | ||||
| 11 | plugins: [ | ||||
| 12 | SwaggerUIBundle.plugins.DownloadUrl | ||||
| 13 | ], | ||||
| 14 | layout: "StandaloneLayout" | ||||
| 15 | }); | ||||
| 16 | // End Swagger UI call region | ||||
| 17 | |||||
| 18 | window.ui = ui; | ||||
| 19 | }; | ||||