API Response Models
Summary
Lifecycle APIs do not share one response envelope. Native Recruitment returns DTOs directly, compatibility adapters preserve monolith-shaped records and messages, HR Operations returns entities or anonymous projections, and Employee Service uses a standard envelope.
Audience
Developers, QA, support, and solution architects.
Reference Content
The following response families are verified in the inspected lifecycle implementations.
Success patterns
| Surface | Verified success response |
|---|---|
| Native Recruitment command | Direct OfferDto or OnboardingDto with success status |
| Native Recruitment list/report | Direct list or report DTO |
| Public offer read | Reduced public offer DTO |
| Compatibility workspace | Monolith-shaped anonymous workspace object |
| Compatibility mutations | Record projection, message object, or completion result |
| HR Operations mutations | Persisted task/exit entity |
| HR Operations access revoke | Anonymous processed-count object |
| HR Operations reads | Workspace object or bounded entity list |
| Employee create | Created status with standard success envelope |
| Employee search | Success envelope with paged search data |
| Host service information | Standard shared-kernel envelope |
| Health | Framework health result |
Created responses
The verified lifecycle-created response is the outbound Employee Service create result. Recruitment onboarding and HR Operations create actions return successful objects rather than a Created response.
Compatibility response risk
The extracted adapter reconstructs compatibility messages and completion data, but not every internal effect matches the monolith. Response shape therefore cannot be used as proof that a login, organization mapping, bank/KYC persistence, or other side effect occurred.
Sensitive completion response
Legacy-shaped completion can return login-bootstrap material. Actual values and examples are intentionally excluded. The extracted adapter can construct such response material even while login provisioning remains pending.
Requires confirmation
- A target standard response envelope for lifecycle APIs.
- Compatibility casing and nullability guarantees.
- Whether sensitive completion response fields should be removed or delivered through another channel.
- Created-resource location semantics for onboarding, exit, and task creation.
Source References
microservices/src/recruitment-service/Api/EndpointResults.csmicroservices/src/recruitment-service/Application/Dtos.csmicroservices/src/recruitment-service/Application/Compatibility/CompatContracts.csmicroservices/src/recruitment-service/Application/Compatibility/CompatCommands.csmicroservices/src/employee-service/Api/EmployeeDirectEndpoints.csmicroservices/src/shared-kernel/Extensions/EndpointRouteBuilderExtensions.csControllers/RecruitmentController.csControllers/HrOperationsController.cs
Related Articles
See Also
Keywords
- Response envelope
- Compatibility result
- Sensitive response
Revision Information
- Status: Draft
- Last reviewed: 2026-07-20
- Review cycle: Quarterly