Description
Automate the generation of typescript API client SDKs from backend swagger schemas.
Current Problem
Changes to backend endpoints require manual duplicate updates to frontend client files, introducing risks of type mismatches and out-of-sync APIs.
Proposed Solution
Integrate OpenAPI specification generators and configure build tasks to generate client libraries automatically.
Technical Tasks
Acceptance Criteria
- Running build or dev scripts exports schemas and compiles client codes automatically
- Frontend API calls use the generated client library rather than manual Axios configurations
- Typing is preserved for API request bodies and responses
Testing Requirements
- Add a dummy backend route and verify the generated client includes the new method
Metadata
- Priority: Medium
- Difficulty: Low
Description
Automate the generation of typescript API client SDKs from backend swagger schemas.
Current Problem
Changes to backend endpoints require manual duplicate updates to frontend client files, introducing risks of type mismatches and out-of-sync APIs.
Proposed Solution
Integrate OpenAPI specification generators and configure build tasks to generate client libraries automatically.
Technical Tasks
Acceptance Criteria
Testing Requirements
Metadata