blob: 13187cb9e3d9efaf0280c30549d4e5b52dcc2ba4 [file] [log] [blame]
Matthias Andreas Benkard3c18a082022-12-27 17:32:58 +01001window.onload = function() {
2 // Begin Swagger UI call region
Matthias Andreas Benkardd63fe562023-11-18 13:18:30 +01003 window.ui = SwaggerUIBundle({
Matthias Andreas Benkard3c18a082022-12-27 17:32:58 +01004 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
Matthias Andreas Benkard3c18a082022-12-27 17:32:58 +010018};