Package org.springdoc.core
Class AbstractSwaggerUiConfigProperties
- java.lang.Object
-
- org.springdoc.core.AbstractSwaggerUiConfigProperties
-
- Direct Known Subclasses:
SwaggerUiConfigParameters,SwaggerUiConfigProperties
public abstract class AbstractSwaggerUiConfigProperties extends Object
Please refer to the swagger configuration.md to get the idea what each parameter does.- Author:
- bnasslahsen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractSwaggerUiConfigProperties.SwaggerUrlThe type Swagger url.
-
Field Summary
Fields Modifier and Type Field Description protected StringconfigUrlURL to fetch external configuration document from.protected BooleandeepLinkingEnables or disables deep linking for tags and operations.protected IntegerdefaultModelExpandDepthThe default expansion depth for the model on the model-example section.protected StringdefaultModelRenderingControls how the model is shown when the API is first rendered.protected IntegerdefaultModelsExpandDepthThe default expansion depth for models (set to -1 completely hide the models).protected BooleandisplayOperationIdControls the display of operationId in operations list.protected BooleandisplayRequestDurationControls the display of the request duration (in milliseconds) for Try-It-Out requests.protected StringdocExpansionControls the default expansion setting for the operations and tags.protected StringfilterIf set, enables filtering.protected org.springdoc.core.AbstractSwaggerUiConfigProperties.DirectiongroupsOrderThe Groups order.protected StringlayoutThe name of a component available via the plugin system to use as the top-level layout for Swagger UI.protected IntegermaxDisplayedTagsIf set, limits the number of tagged operations displayed to at most this many.protected Stringoauth2RedirectUrlOAuth redirect URL.protected StringoperationsSorterApply a sort to the operation list of each APIprotected StringpathThe path for the Swagger UI pages to load.protected BooleanpersistAuthorizationThe Persist authorization.protected BooleanqueryConfigEnabledThe Query config enabled.protected BooleanshowCommonExtensionsControls the display of extensionsprotected BooleanshowExtensionsControls the display of vendor extension (x-) fields and values.protected List<String>supportedSubmitMethodsThe supported try it out methodsprotected StringtagsSorterApply a sort to the tag list of each APIprotected BooleantryItOutEnabledTry it out enabledprotected StringurlThe Url.protected Set<AbstractSwaggerUiConfigProperties.SwaggerUrl>urlsThe Urls.protected StringurlsPrimaryNameThe Urls primary name.protected StringvalidatorUrlURL to validate specs against.
-
Constructor Summary
Constructors Constructor Description AbstractSwaggerUiConfigProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConfigUrl()Gets config url.BooleangetDeepLinking()Gets deep linking.IntegergetDefaultModelExpandDepth()Gets default model expand depth.StringgetDefaultModelRendering()Gets default model rendering.IntegergetDefaultModelsExpandDepth()Gets default models expand depth.BooleangetDisplayOperationId()Gets display operation id.BooleangetDisplayRequestDuration()Gets display request duration.StringgetDocExpansion()Gets doc expansion.StringgetFilter()Gets filter.org.springdoc.core.AbstractSwaggerUiConfigProperties.DirectiongetGroupsOrder()Gets groups order.StringgetLayout()Gets layout.IntegergetMaxDisplayedTags()Gets max displayed tags.StringgetOauth2RedirectUrl()Gets oauth 2 redirect url.StringgetOperationsSorter()Gets operations sorter.StringgetPath()Gets path.BooleangetPersistAuthorization()Gets persist authorization.BooleangetQueryConfigEnabled()Gets query config enabled.BooleangetShowCommonExtensions()Gets show common extensions.BooleangetShowExtensions()Gets show extensions.List<String>getSupportedSubmitMethods()Gets supported submit methods.StringgetTagsSorter()Gets tags sorter.BooleangetTryItOutEnabled()Gets try it out enabledStringgetUrl()Gets url.Set<AbstractSwaggerUiConfigProperties.SwaggerUrl>getUrls()Gets urls.StringgetUrlsPrimaryName()Gets urls primary name.StringgetValidatorUrl()Gets validator url.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.voidsetFilter(String filter)Sets filter.voidsetGroupsOrder(org.springdoc.core.AbstractSwaggerUiConfigProperties.Direction groupsOrder)Sets groups order.voidsetLayout(String layout)Sets layout.voidsetMaxDisplayedTags(Integer maxDisplayedTags)Sets max displayed tags.voidsetOauth2RedirectUrl(String oauth2RedirectUrl)Sets oauth 2 redirect url.voidsetOperationsSorter(String operationsSorter)Sets operations sorter.voidsetPath(String path)Sets 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 enabledvoidsetUrl(String url)Sets url.voidsetUrls(Set<AbstractSwaggerUiConfigProperties.SwaggerUrl> urls)Sets urls.voidsetUrlsPrimaryName(String urlsPrimaryName)Sets urls primary name.voidsetValidatorUrl(String validatorUrl)Sets validator url.
-
-
-
Field Detail
-
path
protected String path
The path for the Swagger UI pages to load. Will redirect to the springdoc.webjars.prefix property.
-
layout
protected String layout
The name of a component available via the plugin system to use as the top-level layout for Swagger UI.
-
configUrl
protected String configUrl
URL to fetch external configuration document from.
-
validatorUrl
protected String validatorUrl
URL to validate specs against.
-
filter
protected String 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
protected String operationsSorter
Apply a sort to the operation list of each API
-
tagsSorter
protected String tagsSorter
Apply a sort to the tag list of each API
-
deepLinking
protected Boolean deepLinking
Enables or disables deep linking for tags and operations.- See Also:
- deep-linking.md
-
displayOperationId
protected Boolean displayOperationId
Controls the display of operationId in operations list.
-
defaultModelsExpandDepth
protected Integer defaultModelsExpandDepth
The default expansion depth for models (set to -1 completely hide the models).
-
defaultModelExpandDepth
protected Integer defaultModelExpandDepth
The default expansion depth for the model on the model-example section.
-
defaultModelRendering
protected String defaultModelRendering
Controls how the model is shown when the API is first rendered.
-
displayRequestDuration
protected Boolean displayRequestDuration
Controls the display of the request duration (in milliseconds) for Try-It-Out requests.
-
docExpansion
protected String docExpansion
Controls the default expansion setting for the operations and tags.
-
maxDisplayedTags
protected Integer maxDisplayedTags
If set, limits the number of tagged operations displayed to at most this many.
-
showExtensions
protected Boolean showExtensions
Controls the display of vendor extension (x-) fields and values.
-
showCommonExtensions
protected Boolean showCommonExtensions
Controls the display of extensions
-
supportedSubmitMethods
protected List<String> supportedSubmitMethods
The supported try it out methods
-
oauth2RedirectUrl
protected String oauth2RedirectUrl
OAuth redirect URL.
-
url
protected String url
The Url.
-
urls
protected Set<AbstractSwaggerUiConfigProperties.SwaggerUrl> urls
The Urls.
-
groupsOrder
protected org.springdoc.core.AbstractSwaggerUiConfigProperties.Direction groupsOrder
The Groups order.
-
urlsPrimaryName
protected String urlsPrimaryName
The Urls primary name.
-
tryItOutEnabled
protected Boolean tryItOutEnabled
Try it out enabled
-
persistAuthorization
protected Boolean persistAuthorization
The Persist authorization.
-
queryConfigEnabled
protected Boolean queryConfigEnabled
The Query config enabled.
-
-
Method Detail
-
getQueryConfigEnabled
public Boolean getQueryConfigEnabled()
Gets query config enabled.- Returns:
- the query config enabled
-
setQueryConfigEnabled
public void setQueryConfigEnabled(Boolean queryConfigEnabled)
Sets query config enabled.- Parameters:
queryConfigEnabled- the query config enabled
-
getTryItOutEnabled
public Boolean getTryItOutEnabled()
Gets try it out enabled- Returns:
- try it out enabled
-
setTryItOutEnabled
public void setTryItOutEnabled(Boolean tryItOutEnabled)
Sets try it out enabled- Parameters:
tryItOutEnabled- try it out enabled
-
getPersistAuthorization
public Boolean getPersistAuthorization()
Gets persist authorization.- Returns:
- the persist authorization
-
setPersistAuthorization
public void setPersistAuthorization(Boolean persistAuthorization)
Sets persist authorization.- Parameters:
persistAuthorization- the persist authorization
-
getUrls
public Set<AbstractSwaggerUiConfigProperties.SwaggerUrl> getUrls()
Gets urls.- Returns:
- the urls
-
setUrls
public void setUrls(Set<AbstractSwaggerUiConfigProperties.SwaggerUrl> urls)
Sets urls.- Parameters:
urls- the urls
-
getValidatorUrl
public String getValidatorUrl()
Gets validator url.- Returns:
- the validator url
-
setValidatorUrl
public void setValidatorUrl(String validatorUrl)
Sets validator url.- Parameters:
validatorUrl- the validator url
-
getPath
public String getPath()
Gets path.- Returns:
- the path
-
setPath
public void setPath(String path)
Sets path.- Parameters:
path- the path
-
getLayout
public String getLayout()
Gets layout.- Returns:
- the layout
-
setLayout
public void setLayout(String layout)
Sets layout.- Parameters:
layout- the layout
-
getConfigUrl
public String getConfigUrl()
Gets config url.- Returns:
- the config url
-
setConfigUrl
public void setConfigUrl(String configUrl)
Sets config url.- Parameters:
configUrl- the config url
-
getFilter
public String getFilter()
Gets filter.- Returns:
- the filter
-
setFilter
public void setFilter(String filter)
Sets filter.- Parameters:
filter- the filter
-
getOperationsSorter
public String getOperationsSorter()
Gets operations sorter.- Returns:
- the operations sorter
-
setOperationsSorter
public void setOperationsSorter(String operationsSorter)
Sets operations sorter.- Parameters:
operationsSorter- the operations sorter
-
getTagsSorter
public String getTagsSorter()
Gets tags sorter.- Returns:
- the tags sorter
-
setTagsSorter
public void setTagsSorter(String tagsSorter)
Sets tags sorter.- Parameters:
tagsSorter- the tags sorter
-
getDeepLinking
public Boolean getDeepLinking()
Gets deep linking.- Returns:
- the deep linking
-
setDeepLinking
public void setDeepLinking(Boolean deepLinking)
Sets deep linking.- Parameters:
deepLinking- the deep linking
-
getDisplayOperationId
public Boolean getDisplayOperationId()
Gets display operation id.- Returns:
- the display operation id
-
setDisplayOperationId
public void setDisplayOperationId(Boolean displayOperationId)
Sets display operation id.- Parameters:
displayOperationId- the display operation id
-
getDefaultModelsExpandDepth
public Integer getDefaultModelsExpandDepth()
Gets default models expand depth.- Returns:
- the default models expand depth
-
setDefaultModelsExpandDepth
public void setDefaultModelsExpandDepth(Integer defaultModelsExpandDepth)
Sets default models expand depth.- Parameters:
defaultModelsExpandDepth- the default models expand depth
-
getDefaultModelExpandDepth
public Integer getDefaultModelExpandDepth()
Gets default model expand depth.- Returns:
- the default model expand depth
-
setDefaultModelExpandDepth
public void setDefaultModelExpandDepth(Integer defaultModelExpandDepth)
Sets default model expand depth.- Parameters:
defaultModelExpandDepth- the default model expand depth
-
getDefaultModelRendering
public String getDefaultModelRendering()
Gets default model rendering.- Returns:
- the default model rendering
-
setDefaultModelRendering
public void setDefaultModelRendering(String defaultModelRendering)
Sets default model rendering.- Parameters:
defaultModelRendering- the default model rendering
-
getDisplayRequestDuration
public Boolean getDisplayRequestDuration()
Gets display request duration.- Returns:
- the display request duration
-
setDisplayRequestDuration
public void setDisplayRequestDuration(Boolean displayRequestDuration)
Sets display request duration.- Parameters:
displayRequestDuration- the display request duration
-
getDocExpansion
public String getDocExpansion()
Gets doc expansion.- Returns:
- the doc expansion
-
setDocExpansion
public void setDocExpansion(String docExpansion)
Sets doc expansion.- Parameters:
docExpansion- the doc expansion
-
getMaxDisplayedTags
public Integer getMaxDisplayedTags()
Gets max displayed tags.- Returns:
- the max displayed tags
-
setMaxDisplayedTags
public void setMaxDisplayedTags(Integer maxDisplayedTags)
Sets max displayed tags.- Parameters:
maxDisplayedTags- the max displayed tags
-
getShowExtensions
public Boolean getShowExtensions()
Gets show extensions.- Returns:
- the show extensions
-
setShowExtensions
public void setShowExtensions(Boolean showExtensions)
Sets show extensions.- Parameters:
showExtensions- the show extensions
-
getShowCommonExtensions
public Boolean getShowCommonExtensions()
Gets show common extensions.- Returns:
- the show common extensions
-
setShowCommonExtensions
public void setShowCommonExtensions(Boolean showCommonExtensions)
Sets show common extensions.- Parameters:
showCommonExtensions- the show common extensions
-
getSupportedSubmitMethods
public List<String> getSupportedSubmitMethods()
Gets supported submit methods.- Returns:
- the supported submit methods
-
setSupportedSubmitMethods
public void setSupportedSubmitMethods(List<String> supportedSubmitMethods)
Sets supported submit methods.- Parameters:
supportedSubmitMethods- the supported submit methods
-
getOauth2RedirectUrl
public String getOauth2RedirectUrl()
Gets oauth 2 redirect url.- Returns:
- the oauth 2 redirect url
-
setOauth2RedirectUrl
public void setOauth2RedirectUrl(String oauth2RedirectUrl)
Sets oauth 2 redirect url.- Parameters:
oauth2RedirectUrl- the oauth 2 redirect url
-
getUrl
public String getUrl()
Gets url.- Returns:
- the url
-
setUrl
public void setUrl(String url)
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
public String getUrlsPrimaryName()
Gets urls primary name.- Returns:
- the urls primary name
-
setUrlsPrimaryName
public void setUrlsPrimaryName(String urlsPrimaryName)
Sets urls primary name.- Parameters:
urlsPrimaryName- the urls primary name
-
-