Attendance API Overview
Summary
The API is implemented with ASP.NET Core minimal API route groups and directly injected application services.
Audience
Frontend and backend developers, QA engineers, architects, support engineers, and implementation partners.
Overview
Direct Attendance and Time Office groups use ApiResponse<T> envelopes. Compatibility groups preserve bare monolith-shaped request and response bodies. Internal foundation discovery uses plain anonymous responses. Commands invoke scoped application services, domain calculation or mutation, audit/outbox coordination, and unit-of-work persistence. Queries use tenant-filtered read services and DTO mappings.
Bearer authentication, tenant/caller context, and correlation are composed at runtime. Per-route authorization metadata is not consistently declared, so end-to-end enforcement must be verified for the approved deployment. Swagger/OpenAPI is generated at runtime. No API-versioning registration or versioned URL segment is present. Gateway cutover allows monolith coexistence without changing compatibility client routes.
Internal discovery
| Method | Route | Purpose | Response | Success | Maturity |
|---|---|---|---|---|---|
| GET | /api/attendance-domain/ | Bounded-context capability discovery | Plain foundation object | 200 | Internal/Foundation |
| GET | /api/attendance-domain/policies | Lists declared policy identifiers | Plain string array | 200 | Internal/Foundation |
Both operations have no request body or tenant parameter. Authentication and authorization requirements are Requires confirmation. Example: GET /api/attendance-domain/ returns a 200 discovery object; framework-level error response shape is unspecified. These operations produce no audit or attendance events.
Source References
microservices/src/attendance-service/Program.csmicroservices/src/attendance-service/Api/AttendanceDirectEndpoints.csmicroservices/src/attendance-service/Api/AttendanceCompatibilityEndpoints.csmicroservices/src/attendance-service/Api/AttendanceShiftPolicyEndpoints.csmicroservices/src/attendance-service/Api/ShiftPolicyCompatEndpoints.csmicroservices/src/attendance-service/Application/Common/Cqrs.cs
Related Articles
See Also
Keywords
- Attendance API
- Attendance API Overview
Revision Information
- Status: Draft
- Last reviewed: 2026-07-15
- Review cycle: Quarterly