Added OpenApi documentation

This commit is contained in:
Katerina 2023-11-22 11:50:15 +02:00
parent c83d78077f
commit 3b3d9ee9e2
2 changed files with 24 additions and 3 deletions

11
pom.xml
View File

@ -106,9 +106,6 @@
<!-- use the same version as your Camel core version -->
</dependency>
<!-- JSON -->
<dependency>
<groupId>org.json</groupId>
@ -120,6 +117,14 @@
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.7.0</version>
</dependency>
</dependencies>
<build>

View File

@ -0,0 +1,16 @@
package eu.dnetlib.validatorapi.configuration;
/*@EnableSwagger2
@Configuration*/
public class SwaggerConfig {/*extends WebMvcConfigurationSupport {
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.basePackage("eu.dnetlib.validatorapi.controllers"))
.paths(PathSelectors.any())
.build();
}*/
}