generate_api_types
Convert an OpenAPI specification to TypeScript types and client code. Provide a file path or URL to generate fetch or axios-based API functions with optional React hooks and tag filtering.
Instructions
Generate TypeScript API types and client code from an OpenAPI spec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | OpenAPI JSON/YAML file path or URL. | |
| outputDir | No | src/generated/api | |
| clientStyle | No | fetch | |
| generateHooks | No | ||
| includeTags | No | ||
| excludeTags | No |