Skip to content

Trips Api #1

@zzarcon

Description

@zzarcon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions