Package org.springdoc.core
Class AbstractSwaggerUiConfigProperties
java.lang.Object
org.springdoc.core.AbstractSwaggerUiConfigProperties
- Direct Known Subclasses:
SwaggerUiConfigParameters
,SwaggerUiConfigProperties
Please refer to the swagger
configuration.md
to get the idea what each parameter does.
- Author:
- bnasslahsen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The type Swagger url. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
URL to fetch external configuration document from.protected Boolean
Enables or disables deep linking for tags and operations.protected Integer
The default expansion depth for the model on the model-example section.protected String
Controls how the model is shown when the API is first rendered.protected Integer
The default expansion depth for models (set to -1 completely hide the models).protected Boolean
Controls the display of operationId in operations list.protected Boolean
Controls the display of the request duration (in milliseconds) for Try-It-Out requests.protected String
Controls the default expansion setting for the operations and tags.protected String
If set, enables filtering.protected org.springdoc.core.AbstractSwaggerUiConfigProperties.Direction
The Groups order.protected String
The name of a component available via the plugin system to use as the top-level layout for Swagger UI.protected Integer
If set, limits the number of tagged operations displayed to at most this many.protected String
OAuth redirect URL.protected String
Apply a sort to the operation list of each APIprotected String
The path for the Swagger UI pages to load.protected Boolean
The Persist authorization.protected Boolean
The Query config enabled.protected Boolean
Controls the display of extensionsprotected Boolean
Controls the display of vendor extension (x-) fields and values.The supported try it out methodsprotected String
Apply a sort to the tag list of each APIprotected Boolean
Try it out enabledprotected String
The Url.protected Set<AbstractSwaggerUiConfigProperties.SwaggerUrl>
The Urls.protected String
The Urls primary name.protected String
URL to validate specs against.protected Boolean
The With credentials. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets config url.Gets deep linking.Gets default model expand depth.Gets default model rendering.Gets default models expand depth.Gets display operation id.Gets display request duration.Gets doc expansion.Gets filter.org.springdoc.core.AbstractSwaggerUiConfigProperties.Direction
Gets groups order.Gets layout.Gets max displayed tags.Gets oauth 2 redirect url.Gets operations sorter.getPath()
Gets path.Gets persist authorization.Gets query config enabled.Gets show common extensions.Gets show extensions.Gets supported submit methods.Gets tags sorter.Gets try it out enabledgetUrl()
Gets url.getUrls()
Gets urls.Gets urls primary name.Gets validator url.Gets with credentials.void
setConfigUrl
(String configUrl) Sets config url.void
setDeepLinking
(Boolean deepLinking) Sets deep linking.void
setDefaultModelExpandDepth
(Integer defaultModelExpandDepth) Sets default model expand depth.void
setDefaultModelRendering
(String defaultModelRendering) Sets default model rendering.void
setDefaultModelsExpandDepth
(Integer defaultModelsExpandDepth) Sets default models expand depth.void
setDisplayOperationId
(Boolean displayOperationId) Sets display operation id.void
setDisplayRequestDuration
(Boolean displayRequestDuration) Sets display request duration.void
setDocExpansion
(String docExpansion) Sets doc expansion.void
Sets filter.void
setGroupsOrder
(org.springdoc.core.AbstractSwaggerUiConfigProperties.Direction groupsOrder) Sets groups order.void
Sets layout.void
setMaxDisplayedTags
(Integer maxDisplayedTags) Sets max displayed tags.void
setOauth2RedirectUrl
(String oauth2RedirectUrl) Sets oauth 2 redirect url.void
setOperationsSorter
(String operationsSorter) Sets operations sorter.void
Sets path.void
setPersistAuthorization
(Boolean persistAuthorization) Sets persist authorization.void
setQueryConfigEnabled
(Boolean queryConfigEnabled) Sets query config enabled.void
setShowCommonExtensions
(Boolean showCommonExtensions) Sets show common extensions.void
setShowExtensions
(Boolean showExtensions) Sets show extensions.void
setSupportedSubmitMethods
(List<String> supportedSubmitMethods) Sets supported submit methods.void
setTagsSorter
(String tagsSorter) Sets tags sorter.void
setTryItOutEnabled
(Boolean tryItOutEnabled) Sets try it out enabledvoid
Sets url.void
Sets urls.void
setUrlsPrimaryName
(String urlsPrimaryName) Sets urls primary name.void
setValidatorUrl
(String validatorUrl) Sets validator url.void
setWithCredentials
(Boolean withCredentials) Sets with credentials.
-
Field Details
-
path
The path for the Swagger UI pages to load. Will redirect to the springdoc.webjars.prefix property. -
layout
The name of a component available via the plugin system to use as the top-level layout for Swagger UI. -
configUrl
URL to fetch external configuration document from. -
validatorUrl
URL to validate specs against. -
filter
If set, enables filtering. The top bar will show an edit box that could be used to filter the tagged operations that are shown. -
operationsSorter
Apply a sort to the operation list of each API -
tagsSorter
Apply a sort to the tag list of each API -
deepLinking
Enables or disables deep linking for tags and operations.- See Also:
-
displayOperationId
Controls the display of operationId in operations list. -
defaultModelsExpandDepth
The default expansion depth for models (set to -1 completely hide the models). -
defaultModelExpandDepth
The default expansion depth for the model on the model-example section. -
defaultModelRendering
Controls how the model is shown when the API is first rendered. -
displayRequestDuration
Controls the display of the request duration (in milliseconds) for Try-It-Out requests. -
docExpansion
Controls the default expansion setting for the operations and tags. -
maxDisplayedTags
If set, limits the number of tagged operations displayed to at most this many. -
showExtensions
Controls the display of vendor extension (x-) fields and values. -
showCommonExtensions
Controls the display of extensions -
supportedSubmitMethods
The supported try it out methods -
oauth2RedirectUrl
OAuth redirect URL. -
url
The Url. -
urls
The Urls. -
groupsOrder
protected org.springdoc.core.AbstractSwaggerUiConfigProperties.Direction groupsOrderThe Groups order. -
urlsPrimaryName
The Urls primary name. -
tryItOutEnabled
Try it out enabled -
persistAuthorization
The Persist authorization. -
queryConfigEnabled
The Query config enabled. -
withCredentials
The With credentials.
-
-
Constructor Details
-
AbstractSwaggerUiConfigProperties
public AbstractSwaggerUiConfigProperties()
-
-
Method Details
-
getWithCredentials
Gets with credentials.- Returns:
- the with credentials
-
setWithCredentials
Sets with credentials.- Parameters:
withCredentials
- the with credentials
-
getQueryConfigEnabled
Gets query config enabled.- Returns:
- the query config enabled
-
setQueryConfigEnabled
Sets query config enabled.- Parameters:
queryConfigEnabled
- the query config enabled
-
getTryItOutEnabled
Gets try it out enabled- Returns:
- try it out enabled
-
setTryItOutEnabled
Sets try it out enabled- Parameters:
tryItOutEnabled
- try it out enabled
-
getPersistAuthorization
Gets persist authorization.- Returns:
- the persist authorization
-
setPersistAuthorization
Sets persist authorization.- Parameters:
persistAuthorization
- the persist authorization
-
getUrls
Gets urls.- Returns:
- the urls
-
setUrls
Sets urls.- Parameters:
urls
- the urls
-
getValidatorUrl
Gets validator url.- Returns:
- the validator url
-
setValidatorUrl
Sets validator url.- Parameters:
validatorUrl
- the validator url
-
getPath
Gets path.- Returns:
- the path
-
setPath
Sets path.- Parameters:
path
- the path
-
getLayout
Gets layout.- Returns:
- the layout
-
setLayout
Sets layout.- Parameters:
layout
- the layout
-
getConfigUrl
Gets config url.- Returns:
- the config url
-
setConfigUrl
Sets config url.- Parameters:
configUrl
- the config url
-
getFilter
Gets filter.- Returns:
- the filter
-
setFilter
Sets filter.- Parameters:
filter
- the filter
-
getOperationsSorter
Gets operations sorter.- Returns:
- the operations sorter
-
setOperationsSorter
Sets operations sorter.- Parameters:
operationsSorter
- the operations sorter
-
getTagsSorter
Gets tags sorter.- Returns:
- the tags sorter
-
setTagsSorter
Sets tags sorter.- Parameters:
tagsSorter
- the tags sorter
-
getDeepLinking
Gets deep linking.- Returns:
- the deep linking
-
setDeepLinking
Sets deep linking.- Parameters:
deepLinking
- the deep linking
-
getDisplayOperationId
Gets display operation id.- Returns:
- the display operation id
-
setDisplayOperationId
Sets display operation id.- Parameters:
displayOperationId
- the display operation id
-
getDefaultModelsExpandDepth
Gets default models expand depth.- Returns:
- the default models expand depth
-
setDefaultModelsExpandDepth
Sets default models expand depth.- Parameters:
defaultModelsExpandDepth
- the default models expand depth
-
getDefaultModelExpandDepth
Gets default model expand depth.- Returns:
- the default model expand depth
-
setDefaultModelExpandDepth
Sets default model expand depth.- Parameters:
defaultModelExpandDepth
- the default model expand depth
-
getDefaultModelRendering
Gets default model rendering.- Returns:
- the default model rendering
-
setDefaultModelRendering
Sets default model rendering.- Parameters:
defaultModelRendering
- the default model rendering
-
getDisplayRequestDuration
Gets display request duration.- Returns:
- the display request duration
-
setDisplayRequestDuration
Sets display request duration.- Parameters:
displayRequestDuration
- the display request duration
-
getDocExpansion
Gets doc expansion.- Returns:
- the doc expansion
-
setDocExpansion
Sets doc expansion.- Parameters:
docExpansion
- the doc expansion
-
getMaxDisplayedTags
Gets max displayed tags.- Returns:
- the max displayed tags
-
setMaxDisplayedTags
Sets max displayed tags.- Parameters:
maxDisplayedTags
- the max displayed tags
-
getShowExtensions
Gets show extensions.- Returns:
- the show extensions
-
setShowExtensions
Sets show extensions.- Parameters:
showExtensions
- the show extensions
-
getShowCommonExtensions
Gets show common extensions.- Returns:
- the show common extensions
-
setShowCommonExtensions
Sets show common extensions.- Parameters:
showCommonExtensions
- the show common extensions
-
getSupportedSubmitMethods
Gets supported submit methods.- Returns:
- the supported submit methods
-
setSupportedSubmitMethods
Sets supported submit methods.- Parameters:
supportedSubmitMethods
- the supported submit methods
-
getOauth2RedirectUrl
Gets oauth 2 redirect url.- Returns:
- the oauth 2 redirect url
-
setOauth2RedirectUrl
Sets oauth 2 redirect url.- Parameters:
oauth2RedirectUrl
- the oauth 2 redirect url
-
getUrl
Gets url.- Returns:
- the url
-
setUrl
Sets url.- Parameters:
url
- the url
-
getGroupsOrder
public org.springdoc.core.AbstractSwaggerUiConfigProperties.Direction getGroupsOrder()Gets groups order.- Returns:
- the groups order
-
setGroupsOrder
public void setGroupsOrder(org.springdoc.core.AbstractSwaggerUiConfigProperties.Direction groupsOrder) Sets groups order.- Parameters:
groupsOrder
- the groups order
-
getUrlsPrimaryName
Gets urls primary name.- Returns:
- the urls primary name
-
setUrlsPrimaryName
Sets urls primary name.- Parameters:
urlsPrimaryName
- the urls primary name
-