Skip to main content

Leave Weekly Offs API

Summary

Two Direct operations read and atomically replace the tenant weekly-off day-name collection.

Audience

Frontend/backend developers, QA, Leave/Attendance administrators, and implementation partners.

Reference Content

Maturity: Direct / Transitional. Authentication: expected. Authorization: administration scope Requires confirmation. Tenant: required for replacement and tenant-filtered list.

OperationMethod/routeRequestResponse/statusBehavior
List weekly offsGET /leave/weekly-offsNone200 WeeklyOffDto[]Ordered persisted collection; read-only.
Replace weekly offsPUT /leave/weekly-offsJSON string[]200 WeeklyOffDto[]; missing tenant 400Removes existing tenant rows and adds trimmed, nonblank, case-insensitive distinct values; audit; no domain event.

Example request: ["Saturday","Sunday"]. Success: [{"day":"Saturday"},{"day":"Sunday"}]. No day-name validity check is implemented by this command.

Replacement affects future policy-enabled Leave calculation. Attendance has overlapping weekly-off ownership and the gateway may route this compatibility family according to current Time Office ownership. No create-one/delete-one endpoints, employee scope, effective dates, rotation, or active state exist.

Source References

  • microservices/src/leave-service/Api/LeaveEndpoints.cs
  • microservices/src/leave-service/Application/LeaveWorkflows.cs
  • microservices/src/leave-service/Domain/Leave/CalendarEntities.cs
  • microservices/src/gateway-api/Program.cs

See Also

Keywords

  • Leave API
  • Leave Weekly Offs API
  • Endpoint reference

Revision Information

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