Skip to content

Add shared HTTP client configuration type #106

Description

@therealjhay

Description: When inter-service HTTP calls are implemented, each service will need HTTP client configuration. A shared type would ensure consistency.

Requirements:

  • Define ServiceClientConfig type: { baseUrl: string; timeout: number; retries: number; authToken?: string }
  • Define ServiceName as a union of service names
  • Export for use in api-gateway when calling other services

Suggested execution steps:

  1. Add types to shared/types/index.ts
  2. Export ServiceName = 'api-gateway' | 'fx-engine' | 'settlement-engine' | 'indexer'
  3. Export ServiceClientConfig
  4. Rebuild

Example commit message:

feat(types): add inter-service HTTP client configuration types

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions