curl --request GET \
--url https://api.example.com/trips/{id}{
"title": "Summer Beach Trip",
"shelter": {
"type": "Point",
"coordinates": [-118.2437, 34.0522]
},
"arrive_date": "2026-07-15",
"leave_date": "2026-07-22",
"stops": [
{
"id": 101,
"name": "Santa Monica Pier",
"category": "Attraction",
"order": 1,
"coming": "2026-07-15T10:00:00Z",
"leaving": "2026-07-15T12:00:00Z"
},
{
"id": 102,
"name": "Venice Beach",
"category": "Beach",
"order": 2,
"coming": "2026-07-15T14:00:00Z",
"leaving": "2026-07-15T18:00:00Z"
}
]
}
Retrieve a specific trip with its stops
curl --request GET \
--url https://api.example.com/trips/{id}{
"title": "Summer Beach Trip",
"shelter": {
"type": "Point",
"coordinates": [-118.2437, 34.0522]
},
"arrive_date": "2026-07-15",
"leave_date": "2026-07-22",
"stops": [
{
"id": 101,
"name": "Santa Monica Pier",
"category": "Attraction",
"order": 1,
"coming": "2026-07-15T10:00:00Z",
"leaving": "2026-07-15T12:00:00Z"
},
{
"id": 102,
"name": "Venice Beach",
"category": "Beach",
"order": 2,
"coming": "2026-07-15T14:00:00Z",
"leaving": "2026-07-15T18:00:00Z"
}
]
}
GET /trips/{id}
curl --request GET \
--url https://api.maytravel.com/trips/1
{
"title": "Summer Beach Trip",
"shelter": {
"type": "Point",
"coordinates": [-118.2437, 34.0522]
},
"arrive_date": "2026-07-15",
"leave_date": "2026-07-22",
"stops": [
{
"id": 101,
"name": "Santa Monica Pier",
"category": "Attraction",
"order": 1,
"coming": "2026-07-15T10:00:00Z",
"leaving": "2026-07-15T12:00:00Z"
},
{
"id": 102,
"name": "Venice Beach",
"category": "Beach",
"order": 2,
"coming": "2026-07-15T14:00:00Z",
"leaving": "2026-07-15T18:00:00Z"
}
]
}