mailcow-dockerized/data/web/api/swagger-initializer.js
2025-04-17 17:29:05 -05:00

18 lines
433 B
JavaScript
Executable file

window.onload = function() {
// Begin Swagger UI call region
window.ui = SwaggerUIBundle({
urls: [{url: "/api/openapi.yaml", name: "mailcow API"}],
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
});
// End Swagger UI call region
};