Retrieves a singleDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Miguel-Rodriguez15/msvc/llms.txt
Use this file to discover all available pages before exploring further.
Curso by its primary key. In addition to the base course data, this endpoint resolves the full Usuario objects for every enrolled user by forwarding the request’s Authorization header to msvc-usuarios via an OpenFeign call to GET /usuarios-por-curso. The populated usuarios array is returned in the response alongside the raw cursoUsuarios junction entries.
Authentication required. The Authorization header must be present and will be forwarded to msvc-usuarios to authenticate the downstream user-lookup call.
Endpoint
Path Parameters
The primary key (
id) of the course to retrieve.Request Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer token forwarded to msvc-usuarios when fetching enrolled user details. |
Response
200 OK — TheCurso object with the usuarios array populated.
Primary key of the course.
Name of the course.
Raw junction records from the
cursos_usuarios table.Primary key of the
CursoUsuario junction record.The ID of the enrolled user as stored in
msvc-usuarios.Full
Usuario objects fetched from msvc-usuarios that correspond to each cursoUsuarios entry. Empty if the course has no enrollments.Primary key of the user in
msvc-usuarios.Full name of the user.
Email address of the user.
Hashed password of the user as stored in
msvc-usuarios.404 Not Found — Returned when no course with the given
id exists.
Examples
Request
Response — 200 OK
Response — 404 Not Found
The
Authorization header is mandatory. The controller declares @RequestHeader(value = "Authorization", required = true), so requests without this header will be rejected by Spring before reaching the service layer. The same token is forwarded verbatim to msvc-usuarios via the Feign client’s obtenerAlumnosPorCurso call.