yapi_create_interface
Create a new API interface in YApi with title, path, HTTP method, project, and category. Optionally include request/response schemas.
Instructions
Create a new API interface
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"path": "<path>",
"method": "<method>",
"project_id": "<project_id>",
"catid": "<catid>"
},
"name": "yapi_create_interface"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| desc | No | Interface description | |
| path | Yes | API path/endpoint | |
| catid | Yes | Category ID | |
| title | Yes | Interface title/name | |
| method | Yes | HTTP method | |
| status | No | Interface status | |
| res_body | No | Response body content (JSON schema or example) | |
| project_id | Yes | Project ID | |
| req_body_type | No | Request body type | |
| res_body_type | No | Response body type | |
| req_body_other | No | Request body content (JSON schema or example) |