1
0
mirror of https://github.com/google/nomulus synced 2026-01-05 04:56:03 +00:00

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
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>
};