atlas_api_helper
Generate TypeScript types, React Query/SWR hooks, mock data, API clients with interceptors, and Zod schemas from API endpoints to speed up frontend development and testing.
Instructions
API integration helper that generates TypeScript types from API responses, creates React Query/SWR hooks, generates mock data for testing, builds API clients with interceptors, and creates Zod validation schemas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseUrl | Yes | Base URL of the API | |
| library | Yes | Data fetching library to use | |
| authType | No | Authentication type | |
| endpoints | Yes | API endpoints to generate code for | |
| framework | No | Target framework | |
| generateMocks | No | Generate mock data and MSW handlers | |
| generateTypes | No | Generate TypeScript types | |
| generateZodSchemas | No | Generate Zod validation schemas |