Class SwaggerConfig


  • @EnableSwagger2
    @Component
    public class SwaggerConfig
    extends java.lang.Object
    • Field Detail

      • AUTHORIZATION_SCOPE_PROPERTY

        public static final java.lang.String AUTHORIZATION_SCOPE_PROPERTY
        See Also:
        Constant Field Values
      • LICENSE_URL_PROPERTY

        public static final java.lang.String LICENSE_URL_PROPERTY
        See Also:
        Constant Field Values
      • TERMS_OF_SERVICE_URL_PROPERTY

        public static final java.lang.String TERMS_OF_SERVICE_URL_PROPERTY
        See Also:
        Constant Field Values
      • LICENSE_PROPERTY

        public static final java.lang.String LICENSE_PROPERTY
        See Also:
        Constant Field Values
      • DOCUMENTATION_DESC_PROPERTY

        public static final java.lang.String DOCUMENTATION_DESC_PROPERTY
        See Also:
        Constant Field Values
      • DOCUMENTATION_TITLE_PROPERTY

        public static final java.lang.String DOCUMENTATION_TITLE_PROPERTY
        See Also:
        Constant Field Values
      • AUTHORIZATION_URL

        public static final java.lang.String AUTHORIZATION_URL
        See Also:
        Constant Field Values
      • CLIENT_CREDENTIAL_AUTHORIZATION_NAME

        public static final java.lang.String CLIENT_CREDENTIAL_AUTHORIZATION_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • SwaggerConfig

        public SwaggerConfig()
    • Method Detail

      • apiDocumentation

        @Bean
        public springfox.documentation.spring.web.plugins.Docket apiDocumentation()
      • apiInfo

        protected springfox.documentation.service.ApiInfo apiInfo()
      • passwordFlow

        protected springfox.documentation.service.OAuth passwordFlow()
      • clientCredentialFlow

        protected springfox.documentation.service.OAuth clientCredentialFlow()
      • getPropertyValue

        protected java.lang.String getPropertyValue​(java.lang.String propertyName)
      • oauthSecurityContext

        protected springfox.documentation.spi.service.contexts.SecurityContext oauthSecurityContext()
      • securityReferences

        protected java.util.List<springfox.documentation.service.SecurityReference> securityReferences()