curl --request GET \
--url https://api.example.com/lista_estudiantes{
"500": {},
"email": "<string>",
"nombre": "<string>",
"apellidos": "<string>"
}Retrieve a list of all students enrolled in the platform
curl --request GET \
--url https://api.example.com/lista_estudiantes{
"500": {},
"email": "<string>",
"nombre": "<string>",
"apellidos": "<string>"
}[email protected]) is automatically excluded from the results.curl -X GET "https://proyecto-ingenieria-software-6ccv.onrender.com/lista_estudiantes" \
-H "Content-Type: application/json"
apellidos ASC).
[
{
"email": "[email protected]",
"nombre": "Juan",
"apellidos": "García López"
},
{
"email": "[email protected]",
"nombre": "María",
"apellidos": "Martínez Silva"
},
{
"email": "[email protected]",
"nombre": "Carlos",
"apellidos": "Rodríguez Pérez"
}
]
SELECT email, nombre, apellidos
FROM usuarios
WHERE email != '[email protected]'
ORDER BY apellidos ASC
PanelProfesor.vue component to populate the student selection dropdown:
async function cargarEstudiantes() {
const response = await fetch('/lista_estudiantes');
const estudiantes = await response.json();
// Populate student list in UI
}
{
"detail": "Error BD"
}