Package io.github.xezzon.zeroweb.openapi
Class OpenapiController
java.lang.Object
io.github.xezzon.zeroweb.openapi.OpenapiController
对外接口管理
- Author:
- xezzon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.github.xezzon.zeroweb.common.domain.Id
addOpenapi
(@Valid AddOpenapiReq req) 新增`对外接口`org.springframework.data.domain.Page<Openapi>
getOpenapiList
(io.github.xezzon.zeroweb.core.odata.ODataRequestParam odata) 获取`对外接口`列表的分页数据void
更新`对外接口`信息void
publishOpenapi
(String id) 发布指定的`对外接口`
-
Constructor Details
-
OpenapiController
-
-
Method Details
-
addOpenapi
@PostMapping public io.github.xezzon.zeroweb.common.domain.Id addOpenapi(@RequestBody @Valid @Valid AddOpenapiReq req) 新增`对外接口`- Parameters:
req
- 包含添加`对外接口`请求数据的请求体- Returns:
- 添加的`对外接口`的唯一标识符
-
getOpenapiList
@GetMapping public org.springframework.data.domain.Page<Openapi> getOpenapiList(io.github.xezzon.zeroweb.core.odata.ODataRequestParam odata) 获取`对外接口`列表的分页数据- Parameters:
odata
- OData查询参数,用于分页和排序- Returns:
- 包含`对外接口`列表的分页对象
-
modifyOpenapi
更新`对外接口`信息- Parameters:
req
- 包含更新`对外接口`请求数据的请求体
-
publishOpenapi
发布指定的`对外接口`- Parameters:
id
- 要发布的`对外接口`的唯一标识符
-