Skip to main content

API Architecture Overview

Summary

Onboarding APIs are split across native Recruitment minimal APIs and a gateway-selectable compatibility surface. Offboarding and generic checklist operations remain controller APIs in the monolith. Extracted completion calls Employee Service synchronously.

Audience

Developers, QA, support, security reviewers, and solution architects.

API architecture

Ownership

BoundaryOwnerMaturity
Native offer acceptance and onboardingRecruitment ServiceImplemented foundation
Public token offer responseRecruitment Service or monolith compatibility targetTransitional
Portal-shaped onboardingGateway-selected compatibility implementationTransitional
Employee initializationRecruitment client to Employee ServicePartial
Exit request and access revokeMonolith HR OperationsImplemented controller boundary
Generic onboarding taskMonolith HR OperationsFoundation
Lifecycle workflow callbackNo dedicated operation foundNot implemented
Lifecycle notification HTTP callNo dedicated operation foundNot implemented

Runtime exposure

The gateway explicitly routes the portal-shaped Recruitment family to either the monolith or extracted service. HR Operations exit traffic stays on monolith routing. Native Recruitment operations are reachable through direct/shadow service exposure when that deployment route is enabled. The gateway records route-source and correlation metadata but does not add authentication or authorization.

Current maturity

The API is Transitional. Compatibility preserves route shapes, not side-effect parity. Extracted minimal APIs register authentication but apply no endpoint authorization requirement. The monolith lifecycle controllers use action or controller authorization and business permission checks.

Requires confirmation

  • Which direct and shadow surfaces are exposed in each environment.
  • Target ownership and retirement criteria for monolith Recruitment compatibility.
  • Whether offboarding will receive an extracted API boundary.
  • Security controls outside the inspected gateway and service code.

Source References

  • microservices/src/recruitment-service/Program.cs
  • microservices/src/recruitment-service/Api/RecruitmentEndpoints.cs
  • microservices/src/recruitment-service/Api/RecruitmentCompatEndpoints.cs
  • Controllers/RecruitmentController.cs
  • Controllers/HrOperationsController.cs
  • microservices/src/gateway-api/Program.cs
  • microservices/src/recruitment-service/Infrastructure/EmployeeServiceClient.cs

See Also

Keywords

  • API ownership
  • Minimal APIs
  • Compatibility routing

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-20
  • Review cycle: Quarterly