Skip to main content
Retrieves a list of all active activities in the system.

Endpoint

GET /actividades

Authentication

This endpoint requires a valid JWT token.
Authorization: Bearer YOUR_JWT_TOKEN

Response

Returns an array of active activity objects.
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 active (always true for this endpoint)

Example Request

curl -X GET http://localhost:3000/actividades \
  -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
  }
]
This endpoint only returns active activities. To retrieve all activities including inactive ones, use the /actividades/todas endpoint.

Build docs developers (and LLMs) love