curl --request GET \
--url https://api.example.com/api/favorites{
"success": true,
"data": [
{
"id": "<string>",
"userId": "<string>",
"routeId": "<string>",
"createdAt": "<string>",
"route": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"image": "<string>",
"approximateDistance": "<string>",
"level": [
{}
],
"description": "<string>",
"_count": {
"reviews": 123,
"routeCalls": 123
}
}
}
],
"count": 123
}curl --request GET \
--url https://api.example.com/api/favorites{
"success": true,
"data": [
{
"id": "<string>",
"userId": "<string>",
"routeId": "<string>",
"createdAt": "<string>",
"route": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"image": "<string>",
"approximateDistance": "<string>",
"level": [
{}
],
"description": "<string>",
"_count": {
"reviews": 123,
"routeCalls": 123
}
}
}
],
"count": 123
}Show Favorite object
Show Route object
curl -X GET https://api.losinmaduros.com/api/favorites \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"success": true,
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"userId": "user_2abc123def456",
"routeId": "987e6543-e21b-12d3-a456-426614174000",
"createdAt": "2026-02-10T10:00:00Z",
"route": {
"id": "987e6543-e21b-12d3-a456-426614174000",
"name": "Casa de Campo",
"slug": "casa-de-campo",
"image": "https://example.com/routes/casa-de-campo.jpg",
"approximateDistance": "15 km",
"level": ["INTERMEDIATE"],
"description": "Beautiful route through Casa de Campo park",
"_count": {
"reviews": 25,
"routeCalls": 12
}
}
}
],
"count": 1
}
{
"success": false,
"error": "Unauthorized"
}