All endpoints underDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/miagv/PlataformaEduca/llms.txt
Use this file to discover all available pages before exploring further.
/api/coordinador require a valid JWT token issued to a user with the COORDINADOR role. Requests that carry a token for a different role receive 403 Forbidden. Requests with a missing or invalid token receive 401 Unauthorized. Include the token in the Authorization header of every request as shown in the examples below.
Authentication
Bearer token from
/api/auth/login. The authenticated user must have the COORDINADOR role.GET /api/coordinador/dashboard — platform statistics
GET /api/coordinador/dashboard — platform statistics
Returns platform-wide aggregate counts for users, courses, grade levels, and teacher assignments. Useful for building a coordinator overview screen.No request parameters.
Response
Total number of registered users across all roles.
Total number of courses in the catalog.
Total number of academic grade levels configured on the platform.
Total number of teacher-course assignments that have been created.
Example response
curl
POST /api/coordinador/asignar — create teacher assignment
POST /api/coordinador/asignar — create teacher assignment
Assigns a teacher (
Docente) to a course (Curso) within a specific classroom (Aula) and academic period (Periodo). All four references must point to existing records; the API returns the fully created AsignacionDocente object including the generated id.Request body
Reference to an existing
Docente record. Provide only the id.Reference to an existing
Curso record. Provide only the id.Reference to an existing
Aula record. Provide only the id.Reference to an existing
Periodo record. Provide only the id.Example request
curl
GET /api/coordinador/grados — list academic grade levels
GET /api/coordinador/grados — list academic grade levels
Returns all
Grado records configured on the platform. Each record represents an academic grade level with an optional section label.Response
Unique identifier for the grade level.
Human-readable grade level name, for example
"1ro Secundaria".Section label within the grade, for example
"A".Example response
curl
GET /api/coordinador/asignaciones — list all teacher assignments
GET /api/coordinador/asignaciones — list all teacher assignments
Returns all
AsignacionDocente records. Each record includes the full nested Docente, Curso, Aula, and Periodo objects, giving a complete view of every teacher-course-classroom-period combination.curl
GET /api/coordinador/aulas — list classrooms
GET /api/coordinador/aulas — list classrooms
Returns all
Aula records. Use this endpoint to populate classroom selectors when creating a new teacher assignment.Response
Unique identifier for the classroom.
Classroom name, for example
"Aula 101".Maximum student capacity for the classroom.
Physical location description, for example
"Pabellón A".Example response
curl
Error responses
| Status | Cause |
|---|---|
401 Unauthorized | The Authorization header is missing or the token is expired or invalid. |
403 Forbidden | The token is valid but the authenticated user does not have the COORDINADOR role. |