The Subjects (Materias) module provides a simple catalog of courses that can be assigned grades. A subject has a single field — its name — making the form minimal and fast to use. The list is sorted alphabetically so you can scan it without scrolling through unsorted entries. Like the Students module, the form title changes between Crear Materia and Editar Materia depending on whether you are creating a new subject or modifying an existing one.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JuanSebax85/frontend-prueba-fullstack/llms.txt
Use this file to discover all available pages before exploring further.
Subject data fields
Subject name. This is the only field. The list is sorted alphabetically by this value.
How to create a subject
Open the Subjects section
Navigate to the Subjects section of the application. The form appears above the subject list with the title Crear Materia.
Enter the subject name
Type the subject name into the Nombre de la materia field.
If you submit with an empty name, a modal dialog appears with the message “El nombre de la materia es obligatorio”. Click Cerrar to dismiss it, then enter a name before submitting again.
How to edit a subject
Click Editar next to any subject in the list. The form pre-populates with the subject’s current name and the title changes to Editar Materia. Update the name and click Guardar. The form sends aPUT /materias/:id request and the list refreshes.
Deleting a subject
Click Eliminar next to the subject you want to remove. If no grades reference the subject, the delete succeeds and the list refreshes. If grades exist, the error modal is displayed and the subject remains.API reference
| Method | Endpoint | Description |
|---|---|---|
GET | /materias | Fetch all subjects. The response array is sorted client-side by nombre. |
POST | /materias | Create a new subject. Body: { nombre }. |
PUT | /materias/:id | Update a subject’s name by ID. Body: { nombre }. |
DELETE | /materias/:id | Delete a subject by ID. Returns an error if grades are associated with it. |
REACT_APP_API_URL environment variable. See Environment configuration for details.
Students
Manage student records linked to grade entries.
Grades
Record grades that connect students and subjects.