Skip to main content

Leave API

Summary

Leave Service exposes 19 direct-group operations and 14 compatibility operations. One direct-group operation is an Internal Workflow callback; no employee-profile, carry-forward, or encashment HTTP family exists.

Audience

Frontend/backend developers, QA and support engineers, architects, security reviewers, and implementation partners.

Overview

Scope and surfaces

  • Direct: 18 public business/query operations grouped under the Leave bounded context.
  • Internal: one Workflow completion callback.
  • Compatibility: 14 monolith-shaped operations for existing Leave, calendar, and HR balance clients.
  • Shadow: gateway validation mode reuses existing operations; it does not add distinct endpoints.
  • Foundation: carry-forward, encashment, and employee projection have no public HTTP operations.

Bearer authentication is expected at the gateway/service boundary. Tenant context is required for mutations and tenant-scoped behavior. Per-route extracted-service authorization metadata is not uniformly confirmed, so final enforcement remains Requires confirmation / Transitional. Workflow delegation changes decision behavior without changing request routes.

Verified endpoint inventory

FamilyOperations
Direct Leave requests3
Direct approval/rejection1
Direct cancellation1
Direct balances3
Direct Leave types2
Direct policies1
Direct Holidays4
Direct weekly offs2
Direct timeline1
Internal Workflow callback1
Compatibility Leave5
Compatibility calendar6
Compatibility balances/workspace3
Total33

Documentation map

Current limitations include absent versioning, no committed OpenAPI artifact, transitional authorization/routing, unbounded list operations, stored-but-unenforced policy fields, and incomplete foundation capabilities.

Source References

  • microservices/src/leave-service/Program.cs
  • microservices/src/leave-service/Api/LeaveEndpoints.cs
  • microservices/src/gateway-api/Program.cs

See Also

Keywords

  • Leave API
  • Leave API
  • Integration

Revision Information

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