Class SwaggerUiConfigParameters

java.lang.Object
org.springdoc.core.properties.AbstractSwaggerUiConfigProperties
org.springdoc.core.properties.SwaggerUiConfigParameters

@Lazy(false) @Configuration(proxyBeanMethods=false) @ConditionalOnProperty(name="springdoc.swagger-ui.enabled", matchIfMissing=true) @ConditionalOnBean(SpringDocConfiguration.class) public class SwaggerUiConfigParameters extends AbstractSwaggerUiConfigProperties
The type Swagger ui config parameters.
Author:
bnasslahsen
  • Field Details

    • CONFIG_URL_PROPERTY

      public static final String CONFIG_URL_PROPERTY
      The constant CONFIG_URL_PROPERTY.
      See Also:
    • LAYOUT_PROPERTY

      public static final String LAYOUT_PROPERTY
      The constant LAYOUT_PROPERTY.
      See Also:
    • FILTER_PROPERTY

      public static final String FILTER_PROPERTY
      The constant FILTER_PROPERTY.
      See Also:
    • URL_PROPERTY

      public static final String URL_PROPERTY
      The constant URL_PROPERTY.
      See Also:
    • URLS_PROPERTY

      public static final String URLS_PROPERTY
      The constant URLS_PROPERTY.
      See Also:
    • OAUTH2_REDIRECT_URL_PROPERTY

      public static final String OAUTH2_REDIRECT_URL_PROPERTY
      The constant OAUTH2_REDIRECT_URL_PROPERTY.
      See Also:
    • VALIDATOR_URL_PROPERTY

      public static final String VALIDATOR_URL_PROPERTY
      The constant VALIDATOR_URL_PROPERTY.
      See Also:
    • QUERY_CONFIG_ENABLED_PROPERTY

      public static final String QUERY_CONFIG_ENABLED_PROPERTY
      The constant QUERY_CONFIG_ENABLED_PROPERTY.
      See Also:
  • Constructor Details

    • SwaggerUiConfigParameters

      public SwaggerUiConfigParameters(SwaggerUiConfigProperties swaggerUiConfig)
      Instantiates a new Swagger ui config parameters.
      Parameters:
      swaggerUiConfig - the swagger ui config
  • Method Details

    • addGroup

      public void addGroup(String group)
      Add group.
      Parameters:
      group - the group
    • addUrl

      public void addUrl(String url)
      Add url.
      Parameters:
      url - the url
    • getUiRootPath

      public String getUiRootPath()
      Gets ui root path.
      Returns:
      the ui root path
    • setUiRootPath

      public void setUiRootPath(String uiRootPath)
      Sets ui root path.
      Parameters:
      uiRootPath - the ui root path
    • isValidUrl

      public boolean isValidUrl(String url)
      Is valid url boolean.
      Parameters:
      url - the url
      Returns:
      the boolean
    • getConfigParameters

      public Map<String,Object> getConfigParameters()
      Gets config parameters.
      Returns:
      the config parameters