generate_ts_by_endpoint
Generate TypeScript types for request parameters, body, and response from an API endpoint path and HTTP method. Uses Swagger definitions to create accurate, reusable types for your project.
Instructions
根据 API 接口路径和方法生成 TypeScript 类型(请求参数、Body、响应),作为模型输入,可以进一步调整并输出
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | API路径,如 /access/packageUnit/queryList | |
| method | Yes | HTTP方法,如 GET, POST, PUT, DELETE | |
| projectName | Yes | 项目名称 |