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

Description

Backend service that exposes a REST endpoint for retrieving the current benefit configuration (mileage rates, course credit values, organizational benefit rules) scoped to a specific organization. Allows org admins to update rates without requiring a mobile app release. Returns versioned config payloads consumed by the mobile cache layer.

Feature: Advantage Calculator

calculator-service

Responsibilities

  • Serve GET /api/v1/organizations/:orgId/benefit-config endpoint with current rates
  • Validate and persist admin-submitted benefit rate updates
  • Version benefit configurations so stale mobile caches can detect updates
  • Enforce organization-scoped access control on all config reads and writes

Interfaces

getBenefitConfig(orgId: string) → BenefitConfig
updateBenefitConfig(orgId: string, config: BenefitConfigUpdate) → BenefitConfig
getBenefitConfigVersion(orgId: string) → ConfigVersion

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component