generate_api_client
Generate TypeScript API client from Swagger/OpenAPI specifications, enabling developers to streamline integration with backend services by creating structured, type-safe API interfaces.
Instructions
Generate TypeScript API client from Swagger/OpenAPI specification
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dir | Yes | workspace dir | |
source | Yes | 使用本地文件路径或 swagger URL 生成 API 和类型文件 / URL or JSON file path. Examples: For full path: '//user/file.json', For file only: 'file.json' returns 'file json'. URLs should start with '/' for proper routing. |