Skip to main content
GET
/
rutas
curl https://api.tesisrutas.com/rutas
[
  {
    "_id": "507f1f77bcf86cd799439020",
    "nombre": "Ruta Colonial del Centro Histórico",
    "descripcion": "Recorrido por los principales monumentos coloniales",
    "categoria": "Cultural",
    "puntos": [
      {
        "poi_id": "507f1f77bcf86cd799439011",
        "order": 0
      },
      {
        "poi_id": "507f1f77bcf86cd799439012",
        "order": 1
      },
      {
        "poi_id": "507f1f77bcf86cd799439013",
        "order": 2
      }
    ],
    "creado_en": "2024-03-15T10:30:00Z"
  },
  {
    "_id": "507f1f77bcf86cd799439021",
    "nombre": "Ruta de las Iglesias",
    "descripcion": "Tour por las iglesias históricas de la ciudad",
    "categoria": "Religioso",
    "puntos": [
      {
        "poi_id": "507f1f77bcf86cd799439015",
        "order": 0
      },
      {
        "poi_id": "507f1f77bcf86cd799439016",
        "order": 1
      }
    ],
    "creado_en": "2024-03-14T14:20:00Z"
  }
]
Retrieves a list of all tourist routes stored in the database, including their POIs and metadata.

Authentication

No authentication required. This is a public endpoint.
routes
array
Array of route objects
_id
string
Unique route identifier
nombre
string
Name of the route
descripcion
string
Description of the route
categoria
string
Route category (Cultural, Historical, Natural, etc.)
puntos
array
Ordered array of POI references
poi_id
string
ID of the POI
order
integer
Position in the route (0-indexed)
creado_en
string
ISO 8601 timestamp of route creation
curl https://api.tesisrutas.com/rutas
[
  {
    "_id": "507f1f77bcf86cd799439020",
    "nombre": "Ruta Colonial del Centro Histórico",
    "descripcion": "Recorrido por los principales monumentos coloniales",
    "categoria": "Cultural",
    "puntos": [
      {
        "poi_id": "507f1f77bcf86cd799439011",
        "order": 0
      },
      {
        "poi_id": "507f1f77bcf86cd799439012",
        "order": 1
      },
      {
        "poi_id": "507f1f77bcf86cd799439013",
        "order": 2
      }
    ],
    "creado_en": "2024-03-15T10:30:00Z"
  },
  {
    "_id": "507f1f77bcf86cd799439021",
    "nombre": "Ruta de las Iglesias",
    "descripcion": "Tour por las iglesias históricas de la ciudad",
    "categoria": "Religioso",
    "puntos": [
      {
        "poi_id": "507f1f77bcf86cd799439015",
        "order": 0
      },
      {
        "poi_id": "507f1f77bcf86cd799439016",
        "order": 1
      }
    ],
    "creado_en": "2024-03-14T14:20:00Z"
  }
]

Response Details

  • Routes are returned as stored in the database
  • POIs are ordered by the order field within each route
  • Empty array [] is returned if no routes exist
  • Includes both active and inactive routes

Build docs developers (and LLMs) love