| | |
| | | public Docket createRestApi() { |
| | | return new Docket(DocumentationType.OAS_30) |
| | | .apiInfo(apiInfo()) |
| | | .groupName("全部") |
| | | .select() |
| | | .apis(RequestHandlerSelectors.basePackage("com.genersoft.iot.vmp.vmanager")) |
| | | .paths(PathSelectors.any()) |
| | | .build() |
| | | .pathMapping("/"); |
| | | } |
| | | @Bean |
| | | public Docket createRestGBApi() { |
| | | return new Docket(DocumentationType.OAS_30) |
| | | .apiInfo(apiInfo()) |
| | | .groupName("国标") |
| | | .select() |
| | | .apis(RequestHandlerSelectors.basePackage("com.genersoft.iot.vmp.vmanager.gb28181")) |
| | | .paths(PathSelectors.any()) |
| | | .build() |
| | | .pathMapping("/"); |
| | | } |
| | | @Bean |
| | | public Docket createRestStreamProxyApi() { |
| | | return new Docket(DocumentationType.OAS_30) |
| | | .apiInfo(apiInfo()) |
| | | .groupName("拉流转发") |
| | | .select() |
| | | .apis(RequestHandlerSelectors.basePackage("com.genersoft.iot.vmp.vmanager.streamProxy")) |
| | | .paths(PathSelectors.any()) |
| | | .build() |
| | | .pathMapping("/"); |
| | | } |
| | | @Bean |
| | | public Docket createRestStreamPushApi() { |
| | | return new Docket(DocumentationType.OAS_30) |
| | | .apiInfo(apiInfo()) |
| | | .groupName("推流管理") |
| | | .select() |
| | | .apis(RequestHandlerSelectors.basePackage("com.genersoft.iot.vmp.vmanager.streamPush")) |
| | | .paths(PathSelectors.any()) |
| | | .build() |
| | | .pathMapping("/"); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public Docket createServerApi() { |
| | | return new Docket(DocumentationType.OAS_30) |
| | | .apiInfo(apiInfo()) |
| | | .groupName("服务管理") |
| | | .select() |
| | | .apis(RequestHandlerSelectors.basePackage("com.genersoft.iot.vmp.vmanager.server")) |
| | | .paths(PathSelectors.any()) |
| | | .build() |
| | | .pathMapping("/"); |
| | | } |
| | | @Bean |
| | | public Docket createUserApi() { |
| | | return new Docket(DocumentationType.OAS_30) |
| | | .apiInfo(apiInfo()) |
| | | .groupName("用户管理") |
| | | .select() |
| | | .apis(RequestHandlerSelectors.basePackage("com.genersoft.iot.vmp.vmanager.user")) |
| | | .paths(PathSelectors.any()) |
| | | .build() |
| | | .pathMapping("/"); |
| | | } |
| | | |
| | | private ApiInfo apiInfo() { |
| | | return new ApiInfoBuilder() |