Employee Domain Foundation APIs
Summary
Three internal endpoints return static foundation metadata. They do not read or mutate employee records, and the foundation response explicitly reports CRUD disabled for that foundation surface.
Audience
- Employee Service developers
- QA engineers and solution architects
Reference Content
The following inventory and endpoint sections define the internal foundation surface.
API inventory
| Method | Route | Purpose | Authentication | Tenant | Request | Response | Maturity | Source path |
|---|---|---|---|---|---|---|---|---|
| GET | /api/employee-domain/ | Report domain foundation | Requires confirmation | Not used | None | EmployeeDomainFoundationResponse | Internal | microservices/src/employee-service/Api/Endpoints.cs |
| GET | /api/employee-domain/policies | List policy placeholders | Requires confirmation | Not used | None | string[] | Internal | microservices/src/employee-service/Api/Endpoints.cs |
| GET | /api/employee-domain/cqrs | Report CQRS folder foundation | Requires confirmation | Not used | None | Anonymous object | Internal | microservices/src/employee-service/Api/Endpoints.cs |
Get domain foundation
- Operation / purpose:
GetEmployeeDomainFoundation; reports service stage, foundation aggregate/value-object names, event names without payloads, and policy placeholders. - Method / route:
GET /api/employee-domain/. - Authentication / authorization: no route policy attached; Requires confirmation. Tenant: not consumed.
- Parameters/body/validation: none.
- Response:
service,stage,crudApisEnabled,aggregates,valueObjects,outboxEvents, andpolicyPlaceholders. - Statuses: 200 confirmed; other statuses Requires confirmation. Side effects: none.
- Compatibility: internal foundation metadata, not a compatibility or CRUD endpoint.
GET /api/employee-domain/
{"service":"employee-service","stage":"domain-foundation","crudApisEnabled":false,"aggregates":["Employee"],"valueObjects":["EmployeeCode"],"outboxEvents":["EmployeeCreated"],"policyPlaceholders":["Employee.View"]}
Example error response: no endpoint-specific error response is implemented; Requires confirmation.
Get policy placeholders
- Operation / purpose:
GetEmployeePolicyPlaceholders; returns the registered Employee policy-name set. - Method / route:
GET /api/employee-domain/policies. - Authentication / authorization: no route policy attached; Requires confirmation. Tenant: not consumed.
- Parameters/body/validation: none.
- Response: string array. Success: 200. Other errors Requires confirmation.
- Side effects: none. Compatibility: internal metadata; it does not prove policies are attached to endpoints.
GET /api/employee-domain/policies
["Employee.View","Employee.Create","Employee.Update","Employee.Delete","Department.Manage","Designation.Manage"]
Example error response: no endpoint-specific error response is implemented; Requires confirmation.
Get CQRS foundation
- Operation / purpose:
GetEmployeeCqrsFoundation; reports expected folder names and a foundation note. - Method / route:
GET /api/employee-domain/cqrs. - Authentication / authorization: no route policy attached; Requires confirmation. Tenant: not consumed.
- Parameters/body/validation: none.
- Response:
folders: string[],note: string. Success: 200. Other errors Requires confirmation. - Side effects: none. Compatibility: internal static metadata; it is not runtime handler discovery.
GET /api/employee-domain/cqrs
{"folders":["Commands","Queries","Validators","Mappings","Behaviors"],"note":"Structure placeholder only; operational handlers are not exposed in Sprint 3 Epic 1."}
Example error response: no endpoint-specific error response is implemented; Requires confirmation.
Source References
microservices/src/employee-service/Api/Endpoints.csmicroservices/src/employee-service/Program.cs
Related Articles
See Also
- Authentication and context
- Future Employee event documentation (Not implemented)
Keywords
- Domain foundation
- Internal API
- Policy placeholders
Revision Information
- Status: Draft
- Last reviewed: 2026-07-15
- Review cycle: Quarterly