Trip Leg (r:trip-leg)

http://rels.goabout.com/trip-leg

The trip relation links both Trip (p:trip) and Reservation (p:reservation) to a TripLeg (p:trip-leg). The link from the Trip (p:trip) indicates that the related trip the parent of this TripLeg (p:trip-leg). The link from the Reservation (p:reservation) shows the way to the reservation for this trip-leg, if applicable.

Example

{
  "_links" : {
    "http://rels.goabout.com/trip-leg" : {
      "href" : "https://api.goabout.com/trip-leg/514"
    }
  }
}

A GET request to the URL https://api.goabout.com/trip-leg/514 will return the associated trip-leg resource.

Reference

The profile of the linked resource is TripLeg (p:trip-leg).