Browse Source

Merge pull request #5263 from mailcow:update-api

[API] Update swagger version to 5.1.0
Niklas Meyer 2 years ago
parent
commit
14265f3de8

+ 1 - 1
data/web/api/openapi.yaml

@@ -1,4 +1,4 @@
-openapi: 3.0.0
+openapi: 3.1.0
 info:
 info:
   description: >-
   description: >-
     mailcow is complete e-mailing solution with advanced antispam, antivirus,
     mailcow is complete e-mailing solution with advanced antispam, antivirus,

+ 1 - 2
data/web/api/swagger-initializer.js

@@ -1,6 +1,6 @@
 window.onload = function() {
 window.onload = function() {
   // Begin Swagger UI call region
   // Begin Swagger UI call region
-  const ui = SwaggerUIBundle({
+  window.ui = SwaggerUIBundle({
     urls: [{url: "/api/openapi.yaml", name: "mailcow API"}],
     urls: [{url: "/api/openapi.yaml", name: "mailcow API"}],
     dom_id: '#swagger-ui',
     dom_id: '#swagger-ui',
     deepLinking: true,
     deepLinking: true,
@@ -15,5 +15,4 @@ window.onload = function() {
   });
   });
   // End Swagger UI call region
   // End Swagger UI call region
 
 
-  window.ui = ui;
 };
 };

File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui-bundle.js


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui-bundle.js.map


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui-es-bundle-core.js


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui-es-bundle-core.js.map


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui-es-bundle.js


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui-es-bundle.js.map


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui-standalone-preset.js


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui-standalone-preset.js.map


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui.css


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui.css.map


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui.js


File diff suppressed because it is too large
+ 0 - 0
data/web/api/swagger-ui.js.map


Some files were not shown because too many files changed in this diff