Retrieves a list of all beneficiarios in the system.
Endpoint
Authentication
This endpoint requires a valid JWT token.
Authorization: Bearer YOUR_JWT_TOKEN
Response
Returns an array of beneficiario objects.
Unique identifier for the beneficiario
Full name of the beneficiario
Time unit (HORAS or MESES)
Timestamp when record was created
Example Request
curl -X GET http://localhost:3000/beneficiarios \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Example Response
[
{
"id": 1,
"nombre": "Juan Pérez García",
"fechaIngreso": "2026-03-01",
"tiempoAsignado": 6,
"unidadTiempo": "MESES",
"creadoEn": "2026-03-01T10:00:00.000Z"
},
{
"id": 2,
"nombre": "María López Ruiz",
"fechaIngreso": "2026-03-02",
"tiempoAsignado": 120,
"unidadTiempo": "HORAS",
"creadoEn": "2026-03-02T11:30:00.000Z"
},
{
"id": 3,
"nombre": "Carlos Hernández",
"fechaIngreso": "2026-03-03",
"tiempoAsignado": 12,
"unidadTiempo": "MESES",
"creadoEn": "2026-03-03T09:15:00.000Z"
}
]