Summary
The client has an API layer that wraps server calls but its conventions — file location, naming, error handling pattern, and how to add a new endpoint — are undocumented. Contributors adding features that need new server data do not know where to start.
Scope
- Document the API layer folder structure and file naming convention
- Explain how to add a new endpoint call: where the function lives, how errors are handled, and how it connects to a React Query hook
- Include a minimal worked example of a new
GET call from API function to hook to component
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The client has an API layer that wraps server calls but its conventions — file location, naming, error handling pattern, and how to add a new endpoint — are undocumented. Contributors adding features that need new server data do not know where to start.
Scope
GETcall from API function to hook to componentAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram