新增告警分类接口文档
This commit is contained in:
parent
fd2f72c3cd
commit
fe5c319357
@ -122,12 +122,26 @@ public class SwaggerConfig {
|
|||||||
.pathMapping("/")
|
.pathMapping("/")
|
||||||
.enable(swaggerEnabled);
|
.enable(swaggerEnabled);
|
||||||
}
|
}
|
||||||
|
@Bean
|
||||||
|
public Docket createAlgorithmApi() {
|
||||||
|
return new Docket(DocumentationType.OAS_30)
|
||||||
|
.apiInfo(apiInfo())
|
||||||
|
.groupName("9. 告警分类配置")
|
||||||
|
.select()
|
||||||
|
.apis(RequestHandlerSelectors.basePackage("com.yfd.platform.modules.algorithm.controller"))
|
||||||
|
.paths(PathSelectors.any())
|
||||||
|
.build()
|
||||||
|
.pathMapping("/")
|
||||||
|
.enable(swaggerEnabled);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public Docket createTestApi() {
|
public Docket createTestApi() {
|
||||||
return new Docket(DocumentationType.OAS_30)
|
return new Docket(DocumentationType.OAS_30)
|
||||||
.apiInfo(apiInfo())
|
.apiInfo(apiInfo())
|
||||||
.groupName("9. 测试接口")
|
.groupName("10. 测试接口")
|
||||||
.select()
|
.select()
|
||||||
.apis(RequestHandlerSelectors.basePackage("com.yfd.platform.modules.test.controller"))
|
.apis(RequestHandlerSelectors.basePackage("com.yfd.platform.modules.test.controller"))
|
||||||
.paths(PathSelectors.any())
|
.paths(PathSelectors.any())
|
||||||
|
Loading…
Reference in New Issue
Block a user