mirror of
https://github.com/google/nomulus.git
synced 2025-07-27 13:06:27 +02:00
Add swagger API documentation (#2035)
This commit is contained in:
parent
58ed53314c
commit
36a60bdf8b
14 changed files with 1240 additions and 2 deletions
20
docs/console-endpoints/swagger-initializer.js
Normal file
20
docs/console-endpoints/swagger-initializer.js
Normal 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>
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue