yapi_add_interface
Add a new API interface definition to YAPI by specifying the title, category ID, path, method, and project ID to register endpoints in your API platform.
Instructions
在 YAPI 中新增一个接口定义
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| desc | No | 接口描述 | |
| path | Yes | 接口路径 | |
| catid | Yes | 接口分类 ID | |
| title | Yes | 接口标题 | |
| method | Yes | 请求方法(GET, POST, PUT, DELETE 等) | |
| status | No | 接口状态 | |
| res_body | No | 响应体内容 | |
| req_query | No | Query 参数列表 | |
| project_id | Yes | 项目 ID | |
| req_headers | No | 请求 Header 列表 | |
| req_body_type | No | 请求体类型 | |
| res_body_type | No | 响应体类型 | |
| req_body_other | No | 其他请求体内容 |