Add swagger API documentation (#2035)

This commit is contained in:
Pavlo Tkach 2023-05-24 16:10:50 -04:00 committed by GitHub
parent 58ed53314c
commit 36a60bdf8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1240 additions and 2 deletions

View file

@ -0,0 +1,20 @@
window.onload = function() {
//<editor-fold desc="Changeable Configuration Block">
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
window.ui = SwaggerUIBundle({
url: "./console-api-swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
});
//</editor-fold>
};