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.
/alumnos resource manages student records. Each student has a unique auto-generated ID, a name, a surname, an email address, and a date of birth. All five CRUD operations are supported.
GET /alumnos
Returns all students in the database as a JSON array. The array is empty if no students have been created yet. Response:200 OK
Unique identifier assigned by the database. Auto-generated.
Student’s first name.
Student’s surname.
Student’s email address.
Date of birth in
YYYY-MM-DD format.POST /alumnos
Creates a new student. Anyid value you include in the request body is ignored — the API forces the ID to null and lets the database assign one.
Request body
Student’s first name.
Student’s surname.
Student’s email address.
Date of birth in
YYYY-MM-DD format.200 OK — the saved student object including the assigned id.
Auto-generated identifier assigned by the database.
Student’s first name.
Student’s surname.
Student’s email address.
Date of birth in
YYYY-MM-DD format.GET /alumnos/
Returns a single student by their numeric ID. Path parametersThe unique identifier of the student to retrieve.
200 OK — the student object.
Unique identifier.
Student’s first name.
Student’s surname.
Student’s email address.
Date of birth in
YYYY-MM-DD format.| Status | Condition |
|---|---|
404 Not Found | No student exists with the given id. |
PUT /alumnos/
Updates an existing student’s fields. All four editable fields —nombre, apellido, email, and fechaNacimiento — are overwritten with the values from the request body.
Path parameters
The unique identifier of the student to update.
Updated first name.
Updated surname.
Updated email address.
Updated date of birth in
YYYY-MM-DD format.200 OK — the updated student object.
Unchanged unique identifier.
Updated first name.
Updated surname.
Updated email address.
Updated date of birth in
YYYY-MM-DD format.| Status | Condition |
|---|---|
404 Not Found | No student exists with the given id. |
DELETE /alumnos/
Deletes a student by ID. Before deleting, the API checks whether any grades (notas) reference the student. If any grades exist, the request is rejected with 400 Bad Request.
Path parameters
The unique identifier of the student to delete.
204 No Content — the student was deleted. The response body is empty.
Error cases
| Status | Condition |
|---|---|
404 Not Found | No student exists with the given id. |
400 Bad Request | The student has one or more grades (notas) associated with them. |
El alumno Juan García tiene notas registradas en el sistema).
curl example
204 No Content with an empty body.
Related pages
Materias reference
Endpoints for managing academic subjects.
Notas reference
Endpoints for creating, reading, and deleting grades.
Error reference
Full list of status codes and how to handle them.
API overview
Base URL, authentication, CORS, and content type.