(no commit message) master
authorChristian Weiske <cweiske@cweiske.de>
Wed, 10 Dec 2025 09:33:59 +0000 (10:33 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 10 Dec 2025 09:33:59 +0000 (10:33 +0100)
README.rst [new file with mode: 0644]
swagger-initializer.js [new file with mode: 0644]

diff --git a/README.rst b/README.rst
new file mode 100644 (file)
index 0000000..daff546
--- /dev/null
@@ -0,0 +1,7 @@
+keywords: swagger-ui "store" api key\r
+\r
+Config value: ``persistAuthorization``\r
+\r
+- patch: https://github.com/swagger-api/swagger-ui/pull/5939\r
+- documentation: https://github.com/swagger-api/swagger-ui/blob/v5.30.3/docs/usage/configuration.md#authorization\r
+\r
diff --git a/swagger-initializer.js b/swagger-initializer.js
new file mode 100644 (file)
index 0000000..4187157
--- /dev/null
@@ -0,0 +1,22 @@
+window.onload = function() {\r
+  //<editor-fold desc="Changeable Configuration Block">\r
+\r
+  // the following lines will be replaced by docker/configurator, when it runs in a docker-container\r
+  window.ui = SwaggerUIBundle({\r
+    url: "../api.yaml",\r
+    dom_id: '#swagger-ui',\r
+    deepLinking: true,\r
+    // HERE:\r
+    persistAuthorization: true,\r
+    presets: [\r
+      SwaggerUIBundle.presets.apis,\r
+      SwaggerUIStandalonePreset\r
+    ],\r
+    plugins: [\r
+      SwaggerUIBundle.plugins.DownloadUrl\r
+    ],\r
+    layout: "StandaloneLayout"\r
+  });\r
+\r
+  //</editor-fold>\r
+};\r