GET api/Rides
Gets all Ride.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of Ride
Collection of Ride| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Gets or sets the ID of the ride. |
integer |
None. |
| startLocation |
Gets or sets the start location of the ride. |
Location |
None. |
| stopLocation |
Gets or sets the stop location of the ride. |
Location |
None. |
| duration |
Gets or sets the duration of the ride in minutes. |
integer |
None. |
| topSpeed |
Gets or sets the top speed achieved during the ride in miles per hour. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"startLocation": {
"latitude": 1.1,
"longitude": 2.1
},
"stopLocation": {
"latitude": 1.1,
"longitude": 2.1
},
"duration": 2,
"topSpeed": 3
},
{
"id": 1,
"startLocation": {
"latitude": 1.1,
"longitude": 2.1
},
"stopLocation": {
"latitude": 1.1,
"longitude": 2.1
},
"duration": 2,
"topSpeed": 3
}
]
application/xml, text/xml
Sample:
<ArrayOfRide xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
<Ride>
<duration>2</duration>
<id>1</id>
<startLocation>
<latitude>1.1</latitude>
<longitude>2.1</longitude>
</startLocation>
<stopLocation>
<latitude>1.1</latitude>
<longitude>2.1</longitude>
</stopLocation>
<topSpeed>3</topSpeed>
</Ride>
<Ride>
<duration>2</duration>
<id>1</id>
<startLocation>
<latitude>1.1</latitude>
<longitude>2.1</longitude>
</startLocation>
<stopLocation>
<latitude>1.1</latitude>
<longitude>2.1</longitude>
</stopLocation>
<topSpeed>3</topSpeed>
</Ride>
</ArrayOfRide>