@Lazy(value=false) @Configuration(proxyBeanMethods=false) @ConditionalOnProperty(name="springdoc.swagger-ui.enabled", matchIfMissing=true) @ConditionalOnBean(value=SpringDocConfiguration.class) public class SwaggerUiConfigParameters extends AbstractSwaggerUiConfigProperties
AbstractSwaggerUiConfigProperties.SwaggerUrl
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_URL_PROPERTY
The constant CONFIG_URL_PROPERTY.
|
static String |
DEEP_LINKING_PROPERTY
The constant DEEP_LINKING.
|
static String |
DISPLAY_OPERATION_ID_PROPERTY
The constant DISPLAY_OPERATION_ID.
|
static String |
DISPLAY_REQUEST_DURATION_PROPERTY
The constant DISPLAY_REQUEST_DURATION.
|
static String |
FILTER_PROPERTY
The constant FILTER_PROPERTY.
|
static String |
LAYOUT_PROPERTY
The constant LAYOUT_PROPERTY.
|
static String |
OAUTH2_REDIRECT_URL_PROPERTY
The constant OAUTH2_REDIRECT_URL_PROPERTY.
|
static String |
PERSIST_AUTHORIZATION_PROPERTY
The constant PERSIST_AUTHORIZATION_PROPERTY.
|
static String |
QUERY_CONFIG_ENABLED_PROPERTY
The constant QUERY_CONFIG_ENABLED_PROPERTY.
|
static String |
SHOW_COMMON_EXTENSIONS_PROPERTY
The constant SHOW_COMMON_EXTENSIONS_PROPERTY.
|
static String |
SHOW_EXTENSIONS_PROPERTY
The constant SHOW_EXTENSIONS_PROPERTY.
|
static String |
TRY_IT_ENABLED_PROPERTY
The constant TRY_IT_ENABLED_PROPERTY.
|
static String |
URL_PROPERTY
The constant URL_PROPERTY.
|
static String |
URLS_PROPERTY
The constant URLS_PROPERTY.
|
static String |
VALIDATOR_URL_PROPERTY
The constant VALIDATOR_URL_PROPERTY.
|
static String |
WITH_CREDENTIALS_PROPERTY
The constant WITH_CREDENTIALS_PROPERTY.
|
configUrl, deepLinking, defaultModelExpandDepth, defaultModelRendering, defaultModelsExpandDepth, displayOperationId, displayRequestDuration, docExpansion, filter, groupsOrder, layout, maxDisplayedTags, oauth2RedirectUrl, operationsSorter, path, persistAuthorization, queryConfigEnabled, showCommonExtensions, showExtensions, supportedSubmitMethods, tagsSorter, tryItOutEnabled, url, urls, urlsPrimaryName, validatorUrl, withCredentials
Constructor and Description |
---|
SwaggerUiConfigParameters(SwaggerUiConfigProperties swaggerUiConfig)
Instantiates a new Swagger ui config parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addGroup(String group)
Add group.
|
void |
addGroup(String group,
String displayName)
Add group.
|
void |
addUrl(String url)
Add url.
|
Map<String,Object> |
getConfigParameters()
Gets config parameters.
|
String |
getUiRootPath()
Gets ui root path.
|
boolean |
isValidUrl(String url)
Is valid url boolean.
|
void |
setUiRootPath(String uiRootPath)
Sets ui root path.
|
getConfigUrl, getDeepLinking, getDefaultModelExpandDepth, getDefaultModelRendering, getDefaultModelsExpandDepth, getDisplayOperationId, getDisplayRequestDuration, getDocExpansion, getFilter, getGroupsOrder, getLayout, getMaxDisplayedTags, getOauth2RedirectUrl, getOperationsSorter, getPath, getPersistAuthorization, getQueryConfigEnabled, getShowCommonExtensions, getShowExtensions, getSupportedSubmitMethods, getTagsSorter, getTryItOutEnabled, getUrl, getUrls, getUrlsPrimaryName, getValidatorUrl, getWithCredentials, setConfigUrl, setDeepLinking, setDefaultModelExpandDepth, setDefaultModelRendering, setDefaultModelsExpandDepth, setDisplayOperationId, setDisplayRequestDuration, setDocExpansion, setFilter, setGroupsOrder, setLayout, setMaxDisplayedTags, setOauth2RedirectUrl, setOperationsSorter, setPath, setPersistAuthorization, setQueryConfigEnabled, setShowCommonExtensions, setShowExtensions, setSupportedSubmitMethods, setTagsSorter, setTryItOutEnabled, setUrl, setUrls, setUrlsPrimaryName, setValidatorUrl, setWithCredentials
public static final String CONFIG_URL_PROPERTY
public static final String LAYOUT_PROPERTY
public static final String FILTER_PROPERTY
public static final String URL_PROPERTY
public static final String URLS_PROPERTY
public static final String OAUTH2_REDIRECT_URL_PROPERTY
public static final String VALIDATOR_URL_PROPERTY
public static final String QUERY_CONFIG_ENABLED_PROPERTY
public static final String DISPLAY_OPERATION_ID_PROPERTY
public static final String DEEP_LINKING_PROPERTY
public static final String DISPLAY_REQUEST_DURATION_PROPERTY
public static final String SHOW_EXTENSIONS_PROPERTY
public static final String SHOW_COMMON_EXTENSIONS_PROPERTY
public static final String TRY_IT_ENABLED_PROPERTY
public static final String PERSIST_AUTHORIZATION_PROPERTY
public static final String WITH_CREDENTIALS_PROPERTY
public SwaggerUiConfigParameters(SwaggerUiConfigProperties swaggerUiConfig)
swaggerUiConfig
- the swagger ui configpublic void addGroup(String group, String displayName)
group
- the groupdisplayName
- the display namepublic void addGroup(String group)
group
- the grouppublic void addUrl(String url)
url
- the urlpublic String getUiRootPath()
public void setUiRootPath(String uiRootPath)
uiRootPath
- the ui root pathpublic boolean isValidUrl(String url)
url
- the urlCopyright © 2024. All rights reserved.