Class SwaggerConfig

  • All Implemented Interfaces:
    com.google.common.base.Supplier<List<springfox.documentation.swagger.web.SwaggerResource>>, Supplier<List<springfox.documentation.swagger.web.SwaggerResource>>, springfox.documentation.swagger.web.SwaggerResourcesProvider

    @Configuration
    @EnableSwagger2
    @PropertySource("classpath:application.properties")
    @Primary
    public class SwaggerConfig
    extends Object
    implements springfox.documentation.swagger.web.SwaggerResourcesProvider
    Swagger configuration class.
    • Constructor Summary

      Constructors 
      Constructor Description
      SwaggerConfig​(springfox.documentation.swagger.web.InMemorySwaggerResourcesProvider resourcesProvider)
      Creates swagger configuration object, initializes internal specs sorting table.
    • Constructor Detail

      • SwaggerConfig

        @Autowired
        public SwaggerConfig​(springfox.documentation.swagger.web.InMemorySwaggerResourcesProvider resourcesProvider)
        Creates swagger configuration object, initializes internal specs sorting table.
    • Method Detail

      • get

        public List<springfox.documentation.swagger.web.SwaggerResource> get()
        Specified by:
        get in interface com.google.common.base.Supplier<List<springfox.documentation.swagger.web.SwaggerResource>>
        Specified by:
        get in interface Supplier<List<springfox.documentation.swagger.web.SwaggerResource>>
      • dataAggregationDocket

        @Bean
        public springfox.documentation.spring.web.plugins.Docket dataAggregationDocket()
        Creates the Swagger2 documentation for the dataAggregation resources.
      • metadataDocket

        @Bean
        public springfox.documentation.spring.web.plugins.Docket metadataDocket()
        Creates the Swagger2 documentation for the metadata resources.
      • rawDataDocket

        @Bean
        public springfox.documentation.spring.web.plugins.Docket rawDataDocket()
        Creates the Swagger2 documentation for the data extraction resources.
      • contributionsDocket

        @Bean
        public springfox.documentation.spring.web.plugins.Docket contributionsDocket()
        Creates the Swagger2 documentation for the contributions resources.