Package org.springdoc.core.properties
Class AbstractSwaggerUiConfigProperties
java.lang.Object
org.springdoc.core.properties.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 classThe type Swagger url. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringURL to fetch external configuration document from.protected BooleanEnables or disables deep linking for tags and operations.protected IntegerThe default expansion depth for the model on the model-example section.protected StringControls how the model is shown when the API is first rendered.protected IntegerThe default expansion depth for models (set to -1 completely hide the models).protected BooleanControls the display of operationId in operations list.protected BooleanControls the display of the request duration (in milliseconds) for Try-It-Out requests.protected StringControls the default expansion setting for the operations and tags.protected StringIf set, enables filtering.protected org.springdoc.core.properties.AbstractSwaggerUiConfigProperties.DirectionThe Groups order.protected StringThe name of a component available via the plugin system to use as the top-level layout for Swagger UI.protected IntegerIf set, limits the number of tagged operations displayed to at most this many.protected StringOAuth redirect URL.protected StringApply a sort to the operation list of each APIprotected StringThe path for the Swagger UI pages to load.protected BooleanThe Persist authorization.protected BooleanThe Query config enabled.protected BooleanControls the display of extensionsprotected BooleanControls the display of vendor extension (x-) fields and values.The supported try it out methodsprotected StringApply a sort to the tag list of each APIprotected BooleanTry it out enabledprotected StringThe Url.protected Set<AbstractSwaggerUiConfigProperties.SwaggerUrl>The Urls.protected StringThe Urls primary name.protected StringURL to validate specs against.protected BooleanThe 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.properties.AbstractSwaggerUiConfigProperties.DirectionGets 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.voidsetConfigUrl(String configUrl) Sets config url.voidsetDeepLinking(Boolean deepLinking) Sets deep linking.voidsetDefaultModelExpandDepth(Integer defaultModelExpandDepth) Sets default model expand depth.voidsetDefaultModelRendering(String defaultModelRendering) Sets default model rendering.voidsetDefaultModelsExpandDepth(Integer defaultModelsExpandDepth) Sets default models expand depth.voidsetDisplayOperationId(Boolean displayOperationId) Sets display operation id.voidsetDisplayRequestDuration(Boolean displayRequestDuration) Sets display request duration.voidsetDocExpansion(String docExpansion) Sets doc expansion.voidSets filter.voidsetGroupsOrder(org.springdoc.core.properties.AbstractSwaggerUiConfigProperties.Direction groupsOrder) Sets groups order.voidSets layout.voidsetMaxDisplayedTags(Integer maxDisplayedTags) Sets max displayed tags.voidsetOauth2RedirectUrl(String oauth2RedirectUrl) Sets oauth 2 redirect url.voidsetOperationsSorter(String operationsSorter) Sets operations sorter.voidSets path.voidsetPersistAuthorization(Boolean persistAuthorization) Sets persist authorization.voidsetQueryConfigEnabled(Boolean queryConfigEnabled) Sets query config enabled.voidsetShowCommonExtensions(Boolean showCommonExtensions) Sets show common extensions.voidsetShowExtensions(Boolean showExtensions) Sets show extensions.voidsetSupportedSubmitMethods(List<String> supportedSubmitMethods) Sets supported submit methods.voidsetTagsSorter(String tagsSorter) Sets tags sorter.voidsetTryItOutEnabled(Boolean tryItOutEnabled) Sets try it out enabledvoidSets url.voidSets urls.voidsetUrlsPrimaryName(String urlsPrimaryName) Sets urls primary name.voidsetValidatorUrl(String validatorUrl) Sets validator url.voidsetWithCredentials(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.properties.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.properties.AbstractSwaggerUiConfigProperties.Direction getGroupsOrder()Gets groups order.- Returns:
- the groups order
-
setGroupsOrder
public void setGroupsOrder(org.springdoc.core.properties.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
-