|
@@ -26,7 +26,7 @@ public class SwaggerConfig {
|
|
|
public Docket productApi() {
|
|
public Docket productApi() {
|
|
|
return new Docket(DocumentationType.SWAGGER_2)
|
|
return new Docket(DocumentationType.SWAGGER_2)
|
|
|
.select()
|
|
.select()
|
|
|
- .apis(RequestHandlerSelectors.basePackage("com.poteviohealth.cgp.partner"))
|
|
|
|
|
|
|
+ .apis(RequestHandlerSelectors.basePackage("com.poteviohealth.cgp.integration"))
|
|
|
// .paths(regex("/product.*"))
|
|
// .paths(regex("/product.*"))
|
|
|
.build()
|
|
.build()
|
|
|
.globalOperationParameters(setHeaderToken())
|
|
.globalOperationParameters(setHeaderToken())
|
|
@@ -41,9 +41,9 @@ public class SwaggerConfig {
|
|
|
}
|
|
}
|
|
|
private ApiInfo metaData() {
|
|
private ApiInfo metaData() {
|
|
|
return new ApiInfoBuilder()
|
|
return new ApiInfoBuilder()
|
|
|
- .title("基础服务")
|
|
|
|
|
|
|
+ .title("积分服务")
|
|
|
.version("1.1.0")
|
|
.version("1.1.0")
|
|
|
- .contact(new Contact("秦阳、路广", "http://www.poteviohealth.com/", "nobody@poteviohealth.com"))
|
|
|
|
|
|
|
+ .contact(new Contact("Qin", "http://www.poteviohealth.com/", "nobody@poteviohealth.com"))
|
|
|
.build();
|
|
.build();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|