generate-api-client
Create API client code from Swagger/OpenAPI documents using Axios, Fetch, or React Query. Specify output directory, file prefixes, grouping, and optional type imports for streamlined development.
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 |