Event API Client
Component Detail
Service Layer
low complexity
Shared Component
mobile
0
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Low-level HTTP client wrapper that calls the events REST API endpoints, attaches JWT auth headers, serialises query parameters, and deserialises JSON responses into Event DTOs. Shared with event-creation and event-sign-up features which also interact with the same /api/v1/events endpoint.
event-api-client
Responsibilities
- Execute authenticated GET /api/v1/events requests with query parameters
- Deserialise JSON response bodies into typed Event DTOs
- Handle HTTP error codes and surface typed exceptions to callers
Interfaces
getEvents({required Map<String, dynamic> queryParams})
getEventById(String eventId)
handleError(Response response)