Class SwaggerConfig


  • @EnableSwagger2
    @Component
    public class SwaggerConfig
    extends java.lang.Object
    Configuration for swagger api documentation
    • Field Detail

      • UNAUTHORIZED_MESSAGE

        public static final java.lang.String UNAUTHORIZED_MESSAGE
        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()
      • unauthorizedResponseMessage

        protected springfox.documentation.service.ResponseMessage unauthorizedResponseMessage()
      • genericMessage

        protected springfox.documentation.service.ResponseMessage genericMessage​(org.springframework.http.HttpStatus httpStatus)
      • globalGETResponseMessages

        protected java.util.List<springfox.documentation.service.ResponseMessage> globalGETResponseMessages()
      • globalPUTResponseMessages

        protected java.util.List<springfox.documentation.service.ResponseMessage> globalPUTResponseMessages()
      • globalPOSTResponseMessages

        protected java.util.List<springfox.documentation.service.ResponseMessage> globalPOSTResponseMessages()
      • globalDETELEResponseMessages

        protected java.util.List<springfox.documentation.service.ResponseMessage> globalDETELEResponseMessages()
      • securityContext

        protected springfox.documentation.spi.service.contexts.SecurityContext securityContext()
      • defaultAuth

        protected java.util.List<springfox.documentation.service.SecurityReference> defaultAuth()
      • getPropertyValue

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

        protected springfox.documentation.service.AuthorizationScope getAuthorizationScope​(java.lang.String key)
      • getHost

        protected java.lang.String getHost()
      • getAuthorizationUrl

        protected java.lang.String getAuthorizationUrl()
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)