The Backend Prueba Fullstack API returns standard HTTP status codes. Most errors follow expected REST conventions, but 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 has two cases where an unhandled RuntimeException causes a 500 Internal Server Error instead of a structured 4xx response.
Status codes
200 OK
Returned by successfulGET and PUT requests. The response body contains the requested or updated resource.
201 Created
Returned by successfulPOST requests. The response body contains the newly created resource with its assigned id.
204 No Content
Returned by successfulDELETE requests on /alumnos/{id} and /materias/{id}. The response body is empty.
400 Bad Request
Returned when you attempt to delete a student that has associated grades. When it occurs:DELETE /alumnos/{id} — the student has one or more Notas linked to them.
Response body:
El alumno Juan García tiene notas registradas en el sistema).
Example — triggering a 400:
- List the student’s grades:
GET /notasand filter byalumnoId. - Delete each Nota:
DELETE /notas/{id}for each grade. - Retry the student delete:
DELETE /alumnos/{id}.
404 Not Found
Returned when an operation targets a resource ID that does not exist. When it occurs:| Endpoint | Operation |
|---|---|
GET /alumnos/{id} | Student ID not found |
PUT /alumnos/{id} | Student ID not found |
DELETE /alumnos/{id} | Student ID not found |
GET /materias/{id} | Subject ID not found |
PUT /materias/{id} | Subject ID not found |
DELETE /materias/{id} | Subject ID not found |
404 with no body).
Example — triggering a 404:
500 Internal Server Error
When it occurs:| Endpoint | Condition |
|---|---|
GET /notas/{id} | Nota ID not found — throws RuntimeException("Nota no encontrada") |
PUT /notas/{id} | Nota ID not found — throws RuntimeException("Nota no encontrada") |
DELETE /notas/{id} | Nota ID not found — throws RuntimeException("Nota no encontrada") |
GET or DELETE on a specific nota, confirm it exists. Fetch all notas with GET /notas and check that the target id is present in the response array before making the targeted request.
Summary table
| Code | Meaning | Endpoints |
|---|---|---|
200 OK | Success | GET, PUT on all resources |
201 Created | Resource created | POST /alumnos, POST /materias, POST /notas |
204 No Content | Deleted successfully | DELETE /alumnos/{id}, DELETE /materias/{id} |
400 Bad Request | Cannot delete — linked grades exist | DELETE /alumnos/{id} |
404 Not Found | Resource not found | GET, PUT, DELETE on /alumnos/{id} and /materias/{id} |
500 Internal Server Error | Unhandled RuntimeException | GET /notas/{id}, PUT /notas/{id}, DELETE /notas/{id} |
Related pages
API overview
Base URL, authentication, CORS, and how to make requests.
Notas reference
Endpoints for creating, reading, and deleting grades.
Alumnos reference
Endpoints for managing student records.
Materias reference
Endpoints for managing academic subjects.