LMS Request and Response Models
Summary
Source-backed Draft reference for LMS Request and Response Models across the implemented Training Service and, where applicable, Gateway surface.
Audience
API consumers, engineering, QA, support, architecture, security, product, and implementation reviewers.
Reference Content
Confirmed named HTTP types
The endpoint file defines 32 named HTTP-facing types: 16 request DTOs (13 top-level operation inputs plus three nested content/question inputs) and 16 response/support types (eight resource DTOs, six report DTOs, one import result, and one nested import row error). The same file also emits anonymous projections, message objects, collections, CSV/binary files, and diagnostic entity collections.
| Class | Named types | Conceptual content | Sensitive handling |
|---|---|---|---|
| Course/content/path requests | 4 | Course identity/content, nested modules/lessons, ordered course references | Public docs omit content values and internal identifiers |
| Enrollment/assessment/attempt requests | 6 | Assignment, completion input, assessment/question definition, attempt start/submission | Personal references, answer material, and result values are not reproduced |
| Certificate/material/session requests | 5 | Issue/generation, file transfer metadata, scheduling/rescheduling | Certificate, document, and recipient values are excluded |
| Import request | 1 | CSV text body used by both import routes | No sample personnel data |
| Import response/support | 2 | Aggregate import outcome and nested row error | No sample personnel data |
| Resource responses | 8 | Course, path, enrollment, assessment, attempt, certificate, material, session | Personal learning/result/document values are excluded |
| Report responses | 6 | Aggregate course, enrollment, assessment, certificate, path, and subject summary | Fields documented conceptually only |
Shape behavior
Required/optional behavior comes from C# constructor nullability plus endpoint/domain validation, not DataAnnotations or a validator library. Collections return JSON arrays. Dashboard and health data are anonymous objects. Explicit failures return anonymous message objects. File endpoints return CSV or binary results. Service information alone uses the shared response envelope.
The source also returns audit, timeline, and outbox entity projections directly. That public exposure and redaction boundary require confirmation.
Endpoint use
See the endpoint catalog for the request/response type attached to each operation and validation for runtime checks.
Source References
microservices/src/training-service/Api/TrainingEndpoints.csmicroservices/src/training-service/Domain/TrainingEntities.csmicroservices/src/contracts/Common/ApiResponse.cs
Related Articles
See Also
Keywords
- LMS API
- Training Service
- Source-backed contract
Revision Information
- Status: Draft
- Last reviewed: 2026-07-17
- Review cycle: Quarterly