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 with pending is that has start_date and end_date are set and friend_ids can be modified, i.e. this can increase engagement since people may ask to join already planed trips
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