Trips (r:trips)

http://rels.goabout.com/trips

The trips relations links a User (p:user) resource a collection of Trip (p:trip) resources of selected trips. Selected trips are Trip (p:trip) of which the user has indicated to take this specific trip out of the list of alternatives for this trip.

Example

{
  "_links": {
    "http://rels.goabout.com/trips": {
      "templated": true,
      "link": "https://api.goabout.com/user/23/trips{?start,end}"
    }
  }
}

A GET request to the URL https://api.goabout.com/user/23/trips?start=2013-02-15T10:00:00.000Z&end=2013-02-15T12:00:00.000Z will return a collection of selected trips departing between 10:00 and 12:00 UTC on December 15, 2013.

Reference

The link template uses the following variables:

Name Description Default
begin The start of the departure time interval.  
end The end of the departure time interval.  

The profile of the linked resource is a HalCollection of Trip (p:trip).