Adding more modifications

This commit is contained in:
Kanames
2022-06-05 17:35:40 +03:00
parent 6e7813a98c
commit c2d3402e6f
17 changed files with 775 additions and 8 deletions

View File

@@ -1,5 +1,9 @@
package ro.stefan.config;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -14,18 +18,17 @@ import springfox.documentation.spring.web.plugins.Docket;
@Configuration
public class SpringFoxConfig {
@Bean
public Docket api3() {
// here tags is optional, it just adds a description in the UI
// by default description is class name, so if you use same tag using
// `@Api` on different classes it will pick one of the class name as
// description, so better define your own description for them
public Docket getDocket() {
/* here tags is optional, it just adds a description in the UI
by default description is class name, so if you use same tag using
`@Api` on different classes it will pick one of the class name as
description, so better define your own description for them */
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
.tags(new Tag("security", "security related"),
new Tag("loan", "loan related"))
new Tag("loan", "loan related"))
.select()
.apis(RequestHandlerSelectors.basePackage("ro.stefan.external.apis"))
.paths(PathSelectors.any())