Skip to content

Commit

Permalink
AJ-1090: swagger definition and UI tweaks (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidangb authored Aug 23, 2023
1 parent 87bbec7 commit bfee5e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions service/src/main/resources/static/swagger/openapi-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ info:
name: BSD
url: https://opensource.org/licenses/BSD-3-Clause
servers:
- url: ../
description: Relative to the current swagger page
- url: /
tags:
- name: Cloning
description: Cloning APIs including Backup and Restore
Expand Down
8 changes: 6 additions & 2 deletions service/src/main/resources/static/swagger/swagger-ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@
cleanupPlugin
],
layout: 'StandaloneLayout',
defaultModelsExpandDepth: -1, // hide the huge list of schemas under the routes
displayOperationId: true, // show generated-client method names for each endpoint
defaultModelsExpandDepth: -1, // hide the huge list of schemas under the routes
defaultModelRendering: 'model', // schema has the descriptions, unlike the example value
defaultModelExpandDepth: 2, // affects the schema shown for a request or response
defaultModelExpandDepth: 2, // affects the schema shown for a request or response
displayRequestDuration: true, // show timing
docExpansion: 'none', // start with sections collapsed
filter: true, // show tag filter bar
})
// End Swagger UI call region

Expand Down

0 comments on commit bfee5e3

Please sign in to comment.