-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
GET /trips
Query params: user
{
"trips": [
{
"id": "1",
"country": "RUS",
"status": "done",
"start_date": "2016-10-10T15:48:56+00:00",
"end_date": "2016-10-16T15:48:56+00:00"
},
{
"id": "1",
"country": "USA",
"status": "pending",
"start_date": null,
"end_date": null,
"friend_ids": null
}
],
"users": [
{
"id": "1",
"name": "Bibek"
},
{
"id": "2",
"name": "Joan"
},
{
"id": "3",
"name": "Lorenzo"
}
]
}POST /trips
{
"country": "USA",
"status": "pending",
"start_date": null,
"end_date": null,
"friend_ids": null
}Trip statuses
done: The trip is done.pending: You will do this trip at some point but you don't know yet when.planed[TBD]: Difference withpendingis that hasstart_dateandend_dateare set andfriend_idscan be modified, i.e. this can increase engagement since people may ask to join already planed trips
Metadata
Metadata
Assignees
Labels
No labels