generate-api-client
Create API client code in TypeScript for Axios, Fetch, or React Query from any Swagger/OpenAPI document. Customize output directory, file structure, and tags for efficient integration.
Instructions
Generate API client code from Swagger/OpenAPI document.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
clientType | No | API client technology stack | |
excludeTags | No | Exclude tags filter | |
filePrefix | No | File prefix | |
fileSuffix | No | File suffix | |
generateTypeImports | No | Whether to generate type imports | |
groupBy | No | Grouping method | |
headers | No | Request headers | |
includeTags | No | Include tags filter | |
outputDir | No | Output directory | |
overwrite | No | Whether to overwrite existing files | |
swaggerUrl | Yes | Swagger/OpenAPI document URL | |
typesImportPath | No | Types import path |