Skip to main content
GET
/
rutas
/
{id}
curl https://api.tesisrutas.com/rutas/507f1f77bcf86cd799439020
{
  "_id": "507f1f77bcf86cd799439020",
  "nombre": "Ruta Colonial del Centro Histórico",
  "descripcion": "Recorrido por los principales monumentos coloniales del centro de la ciudad",
  "categoria": "Cultural",
  "puntos": [
    {
      "poi_id": "507f1f77bcf86cd799439011",
      "order": 0
    },
    {
      "poi_id": "507f1f77bcf86cd799439012",
      "order": 1
    },
    {
      "poi_id": "507f1f77bcf86cd799439013",
      "order": 2
    },
    {
      "poi_id": "507f1f77bcf86cd799439014",
      "order": 3
    }
  ],
  "creado_en": "2024-03-15T10:30:00Z"
}
Fetches detailed information about a single tourist route, including all its POIs in the correct order.

Authentication

No authentication required. This is a public endpoint.
id
string
required
The unique identifier of the route (MongoDB ObjectId)
_id
string
Unique route identifier
nombre
string
Name of the route
descripcion
string
Description of the route
categoria
string
Route category classification
puntos
array
Ordered array of POI references in the route
poi_id
string
ID of the POI
order
integer
Position in the route sequence (0-indexed)
creado_en
string
ISO 8601 timestamp when the route was created
curl https://api.tesisrutas.com/rutas/507f1f77bcf86cd799439020
{
  "_id": "507f1f77bcf86cd799439020",
  "nombre": "Ruta Colonial del Centro Histórico",
  "descripcion": "Recorrido por los principales monumentos coloniales del centro de la ciudad",
  "categoria": "Cultural",
  "puntos": [
    {
      "poi_id": "507f1f77bcf86cd799439011",
      "order": 0
    },
    {
      "poi_id": "507f1f77bcf86cd799439012",
      "order": 1
    },
    {
      "poi_id": "507f1f77bcf86cd799439013",
      "order": 2
    },
    {
      "poi_id": "507f1f77bcf86cd799439014",
      "order": 3
    }
  ],
  "creado_en": "2024-03-15T10:30:00Z"
}

Error Responses

  • 404 Not Found: Route with the specified ID does not exist
  • 422 Unprocessable Entity: Invalid ID format

Build docs developers (and LLMs) love