Class SwaggerConfig
java.lang.Object
org.heigit.ohsome.ohsomeapi.config.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
ConstructorDescriptionSwaggerConfig
(springfox.documentation.swagger.web.InMemorySwaggerResourcesProvider resourcesProvider) Creates swagger configuration object, initializes internal specs sorting table. -
Method Summary
Modifier and TypeMethodDescriptionspringfox.documentation.spring.web.plugins.Docket
Creates the Swagger2 documentation for the data aggregation resources.springfox.documentation.spring.web.plugins.Docket
Creates the Swagger2 documentation for the data extraction resources.List<springfox.documentation.swagger.web.SwaggerResource>
get()
springfox.documentation.spring.web.plugins.Docket
Creates the Swagger2 documentation for the metadata resources.
-
Constructor Details
-
SwaggerConfig
@Autowired public SwaggerConfig(springfox.documentation.swagger.web.InMemorySwaggerResourcesProvider resourcesProvider) Creates swagger configuration object, initializes internal specs sorting table.
-
-
Method Details
-
get
-
dataAggregationDocket
@Bean public springfox.documentation.spring.web.plugins.Docket dataAggregationDocket()Creates the Swagger2 documentation for the data aggregation resources. -
metadataDocket
@Bean public springfox.documentation.spring.web.plugins.Docket metadataDocket()Creates the Swagger2 documentation for the metadata resources. -
dataExtractionDocket
@Bean public springfox.documentation.spring.web.plugins.Docket dataExtractionDocket()Creates the Swagger2 documentation for the data extraction resources.
-