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.

Feature: Event Listing

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)

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component