springdoc.swagger-ui.path |
/swagger-ui.html
|
String , For custom path of the swagger-ui HTML documentation.
|
springdoc.swagger-ui.enabled |
true
|
Boolean . To disable the swagger-ui endpoint (/swagger-ui.html by default).
|
springdoc.swagger-ui.configUrl |
/v3/api-docs/swagger-config
|
String . URL to fetch external configuration document from.
|
springdoc.swagger-ui.layout |
BaseLayout
|
String . The name of a component available via the plugin system to use as the top-level layout for Swagger UI.
|
springdoc.swagger-ui.validatorUrl |
|
By default, Swagger UI does not validate specs. You can use this parameter to set a validator URL, for example for against swagger.io’s online validator. |
springdoc.swagger-ui.tryItOutEnabled |
false
|
Boolean . Controls whether the "Try it out" section should be enabled by default.
|
springdoc.swagger-ui.filter |
false
|
Boolean OR String . If set, enables filtering. The top bar will show an edit box that you can use to filter the tagged operations that are shown. Can be Boolean to enable or disable, or a string, in which case filtering will be enabled using that string as the filter expression. Filtering is case sensitive matching the filter expression anywhere inside the tag.
|
springdoc.swagger-ui.operationsSorter |
|
Function=(a ⇒ a) . Apply a sort to the operation list of each API. It can be 'alpha' (sort by paths alphanumerically), 'method' (sort by HTTP method) or a function (see Array.prototype.sort() to know how sort function works). Default is the order returned by the server unchanged.
|
springdoc.swagger-ui.tagsSorter |
|
Function=(a ⇒ a) . Apply a sort to the tag list of each API. It can be 'alpha' (sort by paths alphanumerically) or a function see Array.prototype.sort() to learn how to write a sort function). Two tag name strings are passed to the sorter for each pass. Default is the order determined by Swagger UI.
|
springdoc.swagger-ui.oauth2RedirectUrl |
/swagger-ui/oauth2-redirect.html
|
String . OAuth redirect URL.
|
springdoc.swagger-ui.displayOperationId |
false
|
Boolean . Controls the display of operationId in operations list. The default is false .
|
springdoc.swagger-ui.displayRequestDuration |
false
|
Boolean . Controls the display of the request duration (in milliseconds) for "Try it out" requests.
|
springdoc.swagger-ui.deepLinking |
false
|
Boolean . If set to true , enables deep linking for tags and operations. See the [Deep Linking documentation](https://swagger.io/docs/open-source-tools/swagger-ui/usage/deep-linking) for more information.
|
springdoc.swagger-ui.defaultModelsExpandDepth |
1
|
Number . The default expansion depth for models (set to -1 completely hide the models).
|
springdoc.swagger-ui.defaultModelExpandDepth |
1
|
Number . The default expansion depth for the model on the model-example section.
|
springdoc.swagger-ui.defaultModelRendering |
|
String=["example"*, "model"] . Controls how the model is shown when the API is first rendered. (The user can always switch the rendering for a given model by clicking the 'Model' and 'Example Value' links.)
|
springdoc.swagger-ui.docExpansion |
|
String=["list"*, "full", "none"] . Controls the default expansion setting for the operations and tags. It can be 'list' (expands only the tags), 'full' (expands the tags and operations) or 'none' (expands nothing).
|
springdoc.swagger-ui.maxDisplayedTags |
|
Number . If set, limits the number of tagged operations displayed to at most this many. The default is to show all operations.
|
springdoc.swagger-ui.showExtensions |
false
|
Boolean . Controls the display of vendor extension (x- ) fields and values for Operations, Parameters, and Schema.
|
springdoc.swagger-ui.url |
|
String .To configure, the path of a custom OpenAPI file . Will be ignored if urls is used.
|
springdoc.swagger-ui.showCommonExtensions |
false
|
Boolean . Controls the display of extensions (pattern , maxLength , minLength , maximum , minimum ) fields and values for Parameters.
|
springdoc.swagger-ui.supportedSubmitMethods |
|
Array=[get, put, post, delete, options, head, patch, trace] . List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.
|
springdoc.swagger-ui.queryConfigEnabled |
false
|
Boolean . Disabled since v1.6.0 . This parameter enables (legacy) overriding configuration parameters via URL search params. See security advisory before enabling this feature.
|
springdoc.swagger-ui.oauth. additionalQueryStringParams |
|
String . Additional query parameters added to authorizationUrl and tokenUrl.
|
springdoc.swagger-ui.disable-swagger-default-url |
false
|
Boolean . To disable the swagger-ui default petstore url. (Available since v1.4.1).
|
springdoc.swagger-ui.urls[0].url |
|
URL . The url of the swagger group, used by Topbar plugin. URLs must be unique among all items in this array, since they’re used as identifiers.
|
springdoc.swagger-ui.urls[0].name |
|
String . The name of the swagger group, used by Topbar plugin. Names must be unique among all items in this array, since they’re used as identifiers.
|
springdoc.swagger-ui.urlsPrimaryName |
|
String . The name of the swagger group which will be displayed when Swagger UI loads.
|
springdoc.swagger-ui.oauth.clientId |
|
String . Default clientId. MUST be a string.
|
springdoc.swagger-ui.oauth.clientSecret |
|
String . Default clientSecret. Never use this parameter in your production environment. It exposes crucial security information. This feature is intended for dev/test environments only.
|
springdoc.swagger-ui.oauth.realm |
|
String . realm query parameter (for OAuth 1) added to authorizationUrl and tokenUrl.
|
springdoc.swagger-ui.oauth.appName |
|
String . OAuth application name, displayed in authorization popup.
|
springdoc.swagger-ui.oauth.scopeSeparator |
|
String . OAuth scope separator for passing scopes, encoded before calling, default value is a space (encoded value %20).
|
springdoc.swagger-ui.csrf.enabled |
false
|
Boolean . To enable CSRF support
|
springdoc.swagger-ui.csrf.use-local-storage |
false
|
Boolean . To get the CSRF token from the Local Storage.
|
springdoc.swagger-ui.csrf.use-session-storage |
false
|
Boolean . To get the CSRF token from the Session Storage.
|
springdoc.swagger-ui.csrf.cookie-name |
XSRF-TOKEN
|
String . Optional CSRF, to set the CSRF cookie name.
|
springdoc.swagger-ui.csrf.header-name |
X-XSRF-TOKEN
|
String . Optional CSRF, to set the CSRF header name.
|
springdoc.swagger-ui.syntaxHighlight.activated |
true
|
Boolean . Whether syntax highlighting should be activated or not.
|
springdoc.swagger-ui.syntaxHighlight.theme |
agate
|
String . String=["agate"*, "arta", "monokai", "nord", "obsidian", "tomorrow-night"] . Highlight.js syntax coloring theme to use. (Only these 6 styles are available.)
|
springdoc.swagger-ui.oauth. useBasicAuthentication WithAccessCodeGrant |
false
|
Boolean . Only activated for the accessCode flow. During the authorization_code request to the tokenUrl, pass the Client Password using the HTTP Basic Authentication scheme (Authorization header with Basic base64encode(client_id + client_secret)).
|
springdoc.swagger-ui.oauth. usePkceWithAuthorization CodeGrant |
false
|
Boolean .Only applies to authorizatonCode flows. Proof Key for Code Exchange brings enhanced security for OAuth public clients.
|
springdoc.swagger-ui.persistAuthorization |
false
|
Boolean . If set to true, it persists authorization data and it would not be lost on browser close/refresh
|
springdoc.swagger-ui.use-root-path |
false
|
Boolean . If set to true, the swagger-ui will be accessible from the application root path directly.
|