Skip to main content
Retrieves a list of all activities in the system, including both active and inactive activities. This endpoint is typically restricted to Admin users.

Endpoint

GET /actividades/todas

Authentication

This endpoint requires a valid JWT token.
Authorization: Bearer YOUR_JWT_TOKEN
This endpoint is intended for Admin users only. It returns both active and inactive activities, which may contain sensitive historical data.

Response

Returns an array of all activity objects, regardless of their active status.
id
number
Unique identifier for the activity
nombre
string
Name of the activity
descripcion
string
Description of the activity
objetivo
string
Objective of the activity
categoria
string
Activity category
activo
boolean
Whether the activity is currently active

Example Request

curl -X GET http://localhost:3000/actividades/todas \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Example Response

[
  {
    "id": 1,
    "nombre": "Limpieza de parques públicos",
    "descripcion": "Actividad de limpieza y mantenimiento de áreas verdes",
    "objetivo": "Contribuir al mejoramiento del entorno comunitario",
    "categoria": "TRABAJO_COMUNITARIO",
    "activo": true
  },
  {
    "id": 2,
    "nombre": "Taller de liderazgo juvenil",
    "descripcion": "Capacitación en habilidades de liderazgo",
    "objetivo": "Desarrollar competencias de liderazgo comunitario",
    "categoria": "LIDERAZGO_COMUNITARIO",
    "activo": true
  },
  {
    "id": 3,
    "nombre": "Programa de alfabetización",
    "descripcion": "Enseñanza de lectoescritura básica",
    "objetivo": "Reducir el analfabetismo en la comunidad",
    "categoria": "EDUCACION",
    "activo": false
  }
]
Unlike the /actividades endpoint which only returns active activities, this endpoint returns all activities regardless of their status. Use this for administrative purposes or when you need to view the complete activity history.
To filter only active activities, use the List Actividades endpoint instead.

Build docs developers (and LLMs) love