@ConfigRoot public class SwaggerUiConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
alwaysInclude
If this should be included every time.
|
(package private) Optional<Boolean> |
deepLinking
If set to true, enables deep linking for tags and operations.
|
(package private) OptionalInt |
defaultModelExpandDepth
The default expansion depth for the model on the model-example section.
|
(package private) Optional<String> |
defaultModelRendering
Controls how the model is shown when the API is first rendered.
|
(package private) OptionalInt |
defaultModelsExpandDepth
The default expansion depth for models (set to -1 completely hide the models).
|
(package private) Optional<Boolean> |
displayOperationId
Controls the display of operationId in operations list.
|
(package private) Optional<Boolean> |
displayRequestDuration
Controls the display of the request duration (in milliseconds) for "Try it out" requests.
|
(package private) Optional<io.smallrye.openapi.ui.DocExpansion> |
docExpansion
Controls the default expansion setting for the operations and tags.
|
(package private) Optional<String> |
filter
If set, enables filtering.
|
(package private) Optional<String> |
footer
A footer for the html page.
|
(package private) Optional<String> |
layout
The name of a component available via the plugin system to use as the top-level layout for Swagger UI.
|
(package private) OptionalInt |
maxDisplayedTags
If set, limits the number of tagged operations displayed to at most this many.
|
(package private) Optional<String> |
modelPropertyMacro
Function to set default values to each property in model.
|
(package private) Optional<String> |
oauth2RedirectUrl
OAuth redirect URL.
|
(package private) Optional<String> |
oauthAdditionalQueryStringParams
OAuth additional query parameters added to authorizationUrl and tokenUrl - Used in the initOAuth method.
|
(package private) Optional<String> |
oauthAppName
OAuth application name, displayed in authorization popup - Used in the initOAuth method.
|
(package private) Optional<String> |
oauthClientId
OAuth default clientId - Used in the initOAuth method.
|
(package private) Optional<String> |
oauthClientSecret
OAuth default clientSecret - Used in the initOAuth method.
|
(package private) Optional<String> |
oauthRealm
OAuth1 Realm query parameter added to authorizationUrl and tokenUrl - Used in the initOAuth method.
|
(package private) Optional<String> |
oauthScopes
OAuth Scopes, separated using the oauthScopeSeparator - Used in the initOAuth method.
|
(package private) Optional<String> |
oauthScopeSeparator
OAuth scope separator for passing scopes - Used in the initOAuth method.
|
(package private) Optional<Boolean> |
oauthUseBasicAuthenticationWithAccessCodeGrant
OAuth only activated for the accessCode flow.
|
(package private) Optional<Boolean> |
oauthUsePkceWithAuthorizationCodeGrant
OAuth only applies to authorizatonCode flows.
|
(package private) Optional<String> |
onComplete
Provides a mechanism to be notified when Swagger UI has finished rendering a newly provided definition.
|
(package private) Optional<String> |
operationsSorter
Apply a sort to the operation list of each API.
|
(package private) Optional<String> |
parameterMacro
Function to set default value to parameters.
|
(package private) String |
path
The path where Swagger UI is available.
|
(package private) Optional<Boolean> |
persistAuthorization
If set to true, it persists authorization data and it would not be lost on browser close/refresh
|
(package private) Optional<List<String>> |
plugins
A list of plugin functions to use in Swagger UI.
|
(package private) Optional<String> |
preauthorizeApiKeyApiKeyValue
Pre-authorize ApiKey Auth, programmatically set ApiKeyValue for an API key or Bearer authorization scheme - Used in the
preauthorizeApiKey method.
|
(package private) Optional<String> |
preauthorizeApiKeyAuthDefinitionKey
Pre-authorize ApiKey Auth, programmatically set DefinitionKey for an API key or Bearer authorization scheme - Used in the
preauthorizeApiKey method.
|
(package private) Optional<String> |
preauthorizeBasicAuthDefinitionKey
Pre-authorize Basic Auth, programmatically set DefinitionKey for a Basic authorization scheme - Used in the
preauthorizeBasic method.
|
(package private) Optional<String> |
preauthorizeBasicPassword
Pre-authorize Basic Auth, programmatically set Password for a Basic authorization scheme - Used in the preauthorizeBasic
method.
|
(package private) Optional<String> |
preauthorizeBasicUsername
Pre-authorize Basic Auth, programmatically set Username for a Basic authorization scheme - Used in the preauthorizeBasic
method.
|
(package private) Optional<List<String>> |
presets
A list of presets to use in Swagger UI.
|
(package private) Optional<List<String>> |
requestCurlOptions
If set, MUST be an array of command line options available to the curl command.
|
(package private) Optional<String> |
requestInterceptor
MUST be a function.
|
(package private) Optional<String> |
responseInterceptor
MUST be a function.
|
(package private) Optional<Boolean> |
showCommonExtensions
Controls the display of extensions (pattern, maxLength, minLength, maximum, minimum) fields and values for
Parameters.
|
(package private) Optional<Boolean> |
showExtensions
Controls the display of vendor extension (x-) fields and values for Operations, Parameters, and Schema.
|
(package private) Optional<Boolean> |
showMutatedRequest
If set to true, uses the mutated request returned from a requestInterceptor to produce the curl command in the UI,
otherwise the request before the requestInterceptor was applied is used.
|
(package private) Optional<List<io.smallrye.openapi.ui.HttpMethod>> |
supportedSubmitMethods
List of HTTP methods that have the "Try it out" feature enabled.
|
(package private) Optional<String> |
syntaxHighlight
Set to false to deactivate syntax highlighting of payloads and cURL command, can be otherwise an object with the
activate and theme properties.
|
(package private) Optional<String> |
tagsSorter
Apply a sort to the tag list of each API.
|
(package private) Optional<io.smallrye.openapi.ui.ThemeHref> |
theme
Swagger UI theme to be used.
|
(package private) Optional<String> |
title
The html title for the page.
|
(package private) Map<String,String> |
urls
The urls that will be included as options.
|
(package private) Optional<String> |
urlsPrimaryName
If urls option is used, this will be the name of the default selection.
|
(package private) Optional<String> |
validatorUrl
By default, Swagger UI attempts to validate specs against swagger.io's online validator.
|
(package private) Optional<Boolean> |
withCredentials
If set to true, enables passing credentials, as defined in the Fetch standard, in CORS requests that are sent by the
browser.
|
| Constructor and Description |
|---|
SwaggerUiConfig() |
@ConfigItem(defaultValue="swagger-ui") String path
The value `/` is not allowed as it blocks the application from serving anything else. By default, this value will be resolved as a path relative to `${quarkus.http.non-application-root-path}`.
@ConfigItem(defaultValue="false") boolean alwaysInclude
@ConfigItem Map<String,String> urls
@ConfigItem Optional<String> urlsPrimaryName
@ConfigItem Optional<io.smallrye.openapi.ui.ThemeHref> theme
@ConfigItem Optional<Boolean> deepLinking
@ConfigItem Optional<Boolean> displayOperationId
@ConfigItem OptionalInt defaultModelsExpandDepth
@ConfigItem OptionalInt defaultModelExpandDepth
@ConfigItem Optional<String> defaultModelRendering
@ConfigItem Optional<Boolean> displayRequestDuration
@ConfigItem Optional<io.smallrye.openapi.ui.DocExpansion> docExpansion
@ConfigItem Optional<String> filter
@ConfigItem OptionalInt maxDisplayedTags
@ConfigItem Optional<String> operationsSorter
@ConfigItem Optional<Boolean> showExtensions
@ConfigItem Optional<Boolean> showCommonExtensions
@ConfigItem Optional<String> tagsSorter
@ConfigItem Optional<String> onComplete
@ConfigItem Optional<String> syntaxHighlight
@ConfigItem Optional<String> requestInterceptor
@ConfigItem Optional<List<String>> requestCurlOptions
@ConfigItem Optional<String> responseInterceptor
@ConfigItem Optional<Boolean> showMutatedRequest
@ConfigItem Optional<List<io.smallrye.openapi.ui.HttpMethod>> supportedSubmitMethods
@ConfigItem Optional<String> validatorUrl
@ConfigItem Optional<Boolean> withCredentials
@ConfigItem Optional<String> modelPropertyMacro
@ConfigItem Optional<String> parameterMacro
@ConfigItem Optional<Boolean> persistAuthorization
@ConfigItem Optional<String> layout
@ConfigItem Optional<String> oauthClientId
@ConfigItem Optional<String> oauthClientSecret
@ConfigItem Optional<String> oauthRealm
@ConfigItem Optional<String> oauthAppName
@ConfigItem Optional<String> oauthScopeSeparator
@ConfigItem Optional<String> oauthScopes
@ConfigItem Optional<String> oauthAdditionalQueryStringParams
@ConfigItem Optional<Boolean> oauthUseBasicAuthenticationWithAccessCodeGrant
@ConfigItem Optional<Boolean> oauthUsePkceWithAuthorizationCodeGrant
@ConfigItem Optional<String> preauthorizeBasicAuthDefinitionKey
@ConfigItem Optional<String> preauthorizeBasicUsername
@ConfigItem Optional<String> preauthorizeBasicPassword
@ConfigItem Optional<String> preauthorizeApiKeyAuthDefinitionKey
Copyright © 2021 JBoss by Red Hat. All rights reserved.