Dashboard API Client
Component Detail
Infrastructure
low complexity
mobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Thin REST API client adapter scoped to the dashboard endpoints, wrapping the shared REST API client to provide typed request/response models for home screen data. Handles the parallel fetch of peer mentor activity summary and coordinator team stats in a single composed call to minimize time-to-interactive on screen mount.
dashboard-api-client
Responsibilities
- Fetch peer mentor home data (recent activities, follow-ups, notification count)
- Fetch coordinator home data (team stats, pending approvals, assignment inbox)
- Compose parallel API calls and merge results into a single DashboardData model
- Propagate network errors to the Dashboard Service BLoC as typed failure events
Interfaces
fetchPeerMentorHomeData(String userId)
fetchCoordinatorHomeData(String userId)
fetchPendingApprovalCount(String coordinatorId)
fetchUnreadAssignmentCount(String userId)
fetchNotificationCount(String userId)