- /**
- * Gets the API info.
- *
- * @return the API info.
- */
- @Bean
- public Docket api(TypeResolver resolver) {
- return new Docket(DocumentationType.SWAGGER_2) //
- .apiInfo(apiInfo()) //
- .select() //
- .apis(RequestHandlerSelectors.any()) //
- .paths(PathSelectors.any()) //
- .paths(Predicates.not(PathSelectors.regex("/error"))) // this endpoint is not implemented, but was
- // visible for Swagger
- .paths(Predicates.not(PathSelectors.regex("/actuator.*"))) // this endpoint is implemented by spring
- // framework, exclude for now
- .build();
+@OpenAPIDefinition( //
+ tags = {@Tag(name = ConsumerConsts.CONSUMER_API_NAME, description = ConsumerConsts.CONSUMER_API_DESCRIPTION),
+ @Tag(
+ name = ConsumerConsts.CONSUMER_API_CALLBACKS_NAME,
+ description = ConsumerConsts.CONSUMER_API_CALLBACKS_DESCRIPTION),
+ @Tag(
+ name = ProducerConsts.PRODUCER_API_CALLBACKS_NAME,
+ description = ProducerConsts.PRODUCER_API_CALLBACKS_DESCRIPTION),
+ @Tag(name = ProducerConsts.PRODUCER_API_NAME, description = ProducerConsts.PRODUCER_API_DESCRIPTION), //
+ @Tag(name = StatusController.API_NAME, description = StatusController.API_DESCRIPTION)}, //
+ info = @Info(
+ title = "Enrichment Information Service", //
+ version = "1.0", //
+ description = SwaggerConfig.DESCRIPTION, //
+ license = @License(
+ name = "Copyright (C) 2020 Nordix Foundation. Licensed under the Apache License.",
+ url = "http://www.apache.org/licenses/LICENSE-2.0")))
+public class SwaggerConfig {
+ private SwaggerConfig() {