TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JuanSebax85/backend-prueba-fullstack/llms.txt
Use this file to discover all available pages before exploring further.
/notas resource manages grade records. Each nota links one student (alumno) to one subject (materia) and records a numeric grade value. All five CRUD operations are supported.
Request body and response shape differ. When you create or update a nota, the request body uses a nested structure — the
alumno and materia fields are objects containing only an id. When you read a nota (single or list), the response uses a flat NotaDTO that includes the student’s name, surname, and the subject name directly in the response — no separate lookups needed.GET /notas
Returns all valid grade records as a JSON array ofNotaDTO objects. Records where the linked student or subject has been deleted (orphaned notas) are automatically filtered out and will not appear in this response.
Response: 200 OK
Unique identifier of the grade record.
The numeric grade value.
ID of the student who received the grade.
First name of the student.
Surname of the student.
ID of the subject the grade belongs to.
Name of the subject.
POST /notas
Creates a new grade record. The request body must reference an existing student and an existing subject by their IDs. Anyid value in the request body is auto-assigned by the database.
Request body
The numeric grade value (e.g.,
8.5).Date the grade was recorded, in
YYYY-MM-DD format.Reference to the student receiving the grade. Must contain an existing student
id.Reference to the subject the grade belongs to. Must contain an existing subject
id.200 OK — the saved Nota entity (not a NotaDTO). The nested alumno and materia objects are returned as-is from the database.
Auto-generated identifier assigned by the database.
The numeric grade value.
Date the grade was recorded, in
YYYY-MM-DD format.The full alumno entity linked to this grade.
The full materia entity linked to this grade.
GET /notas/
Returns a single grade record by its numeric ID. The response is a flatNotaDTO, not the nested Nota entity.
Path parameters
The unique identifier of the grade record to retrieve.
200 OK — a flat NotaDTO.
Unique identifier of the grade record.
The numeric grade value.
ID of the student who received the grade.
First name of the student.
Surname of the student.
ID of the subject the grade belongs to.
Name of the subject.
| Status | Condition |
|---|---|
500 Internal Server Error | No nota exists with the given id. The controller throws an unhandled RuntimeException("Nota no encontrada"). |
PUT /notas/
Updates an existing grade record. The request body uses the same nested structure asPOST /notas — alumno and materia are objects with an id. The fields valor, alumno, and materia are overwritten.
Path parameters
The unique identifier of the grade record to update.
Updated numeric grade value.
Updated reference to the student. Must contain an existing student
id.Updated reference to the subject. Must contain an existing subject
id.| Status | Condition |
|---|---|
500 Internal Server Error | No nota exists with the given id. The controller throws an unhandled RuntimeException("Nota no encontrada"). |
200 OK — the updated Nota entity with nested alumno and materia objects.
Unchanged unique identifier.
Updated numeric grade value.
Date the grade was recorded, in
YYYY-MM-DD format.The updated alumno entity linked to this grade.
The updated materia entity linked to this grade.
DELETE /notas/
Deletes a grade record by ID. Path parametersThe unique identifier of the grade record to delete.
200 OK — the grade was deleted. The response body is empty.
Error cases
| Status | Condition |
|---|---|
500 Internal Server Error | No nota exists with the given id. The controller throws an unhandled RuntimeException("Nota no encontrada"). |
200 OK with an empty body.
Related pages
Alumnos reference
Endpoints for managing student records.
Materias reference
Endpoints for managing academic subjects.
Error reference
Full list of status codes, including the 500 behaviour on notas.
API overview
Base URL, authentication, CORS, and content type.