[Orcid Service | log4j]: SwaggerConfig.java: Updated swagger to add separate folders for libraries.

This commit is contained in:
Konstantina Galouni 2022-10-20 10:31:30 +03:00
parent 25d12c9c2a
commit 189602566d
1 changed files with 97 additions and 86 deletions

View File

@ -44,7 +44,18 @@ public class SwaggerConfig extends WebMvcConfigurerAdapter {
// .globalOperationParameters(globalParameterList())
.apiInfo(apiInfo())
.select()
.apis(RequestHandlerSelectors.any())
.apis(RequestHandlerSelectors.basePackage("eu.dnetlib.uoaorcidservice.controllers"))
.paths(PathSelectors.any())
.build();
}
@Bean
public Docket createRestApiAuthorizationLibrary() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
.groupName("Authorization Library")
.select()
.apis(RequestHandlerSelectors.basePackage("eu.dnetlib.uoaauthorizationlibrary.controllers"))
.paths(PathSelectors.any())
.build();
}