AllDocumentation 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/docente endpoints require a JWT issued to a user with the DOCENTE role. The platform resolves the authenticated teacher’s identity from the email claim in the JWT — using DocenteRepository.findByUsuarioEmail() — so each teacher only ever sees or acts on their own assignments. Requests from users without the DOCENTE role receive 403 Forbidden.
Authentication
Bearer token from
/api/auth/login. The authenticated user must have the DOCENTE role.GET /api/docente/mis-cursos — list assigned courses
GET /api/docente/mis-cursos — list assigned courses
Returns all
AsignacionDocente records linked to the currently authenticated teacher. The teacher’s identity is resolved automatically from the JWT email — you do not pass a teacher ID in the request. Each record includes the associated Curso, Aula, and Periodo details.curl
POST /api/docente/evaluaciones — create an evaluation
POST /api/docente/evaluaciones — create an evaluation
Creates a new
Evaluacion (assessment) for a course assignment. The porcentaje field represents the evaluation’s weight toward the final grade as a decimal value — for example, 30.0 means 30%. The sum of all evaluation weights for an assignment is not validated server-side, so ensure percentages are managed correctly in your client.Request body
Title of the evaluation, for example
"Examen Parcial" or "Tarea 1".Weight of this evaluation as a decimal percentage, for example
30.0 for 30%.Evaluation date in ISO 8601 format (
YYYY-MM-DD), for example "2024-06-15".Reference to the
Curso this evaluation belongs to. Provide only the id.Reference to the
AsignacionDocente this evaluation is tied to. Provide only the id.Example request
curl
POST /api/docente/notas — record a student grade
POST /api/docente/notas — record a student grade
Records a
Nota (student score) for a specific Evaluacion and Estudiante. The nota value is stored as a Double — use decimal notation for partial scores. The optional observacion field lets the teacher attach a comment visible to the student in their grade report.Request body
Numeric score for the student, for example
17.0.Optional teacher comment attached to this grade, for example
"Buen trabajo".Reference to the
Evaluacion being graded. Provide only the id.Reference to the
Estudiante receiving the grade. Provide only the id.Example request
curl
GET /api/docente/estadisticas/{asignacionId} — assignment statistics
GET /api/docente/estadisticas/{asignacionId} — assignment statistics
Returns aggregate statistics for a specific teacher assignment identified by its
id. Currently reports the total number of evaluations created for that assignment.Path parameter
The
id of the AsignacionDocente to retrieve statistics for.Response
Number of
Evaluacion records associated with the specified assignment.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 DOCENTE role. |