Infrastructure low complexity mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Thin HTTP client wrapper for the proxy activity registration endpoint. Handles POST /api/v1/activities with the proxy_user_id field, attaches the coordinator's JWT, and passes through server-side validation errors (scope violations, missing fields) to the calling service layer.

Feature: Coordinator Proxy Reporting

proxy-api-client

Responsibilities

  • POST proxy activity to /api/v1/activities with proxy_user_id in request body
  • Attach coordinator JWT to authorization header
  • Deserialize activity creation response or surface structured API error
  • Handle 403 scope violation responses with specific error typing

Interfaces

postProxyActivity(payload: ProxyActivityPayload, token: string): Future<ActivityResponse>
getMentorsInScope(coordinatorId: string, token: string): Future<List<PeerMentor>>
handleErrorResponse(statusCode: int, body: Map): ProxyApiError