Service Layer medium complexity backend
1
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Low-level HTTP adapter for the external Dynamics portal REST API. Manages request signing, OAuth token refresh, exponential backoff retries, and error normalization so the integration service works with a clean internal contract.

Feature: External Portal Integration

dynamics-portal-http-client

Responsibilities

  • Execute authenticated HTTP requests against the external Dynamics portal API
  • Manage OAuth 2.0 token lifecycle including silent refresh flows
  • Implement retry logic with exponential backoff for transient failures
  • Normalize external API error responses into typed internal error objects

Interfaces

get(path: string, params?: Record<string, string>): Promise<ApiResponse>
post(path: string, body: unknown): Promise<ApiResponse>
put(path: string, body: unknown): Promise<ApiResponse>
refreshToken(config: IntegrationConfig): Promise<AuthToken>

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component