POST api/AddIsOnRide
Request Information
URI Parameters
None.
Body Parameters
AddIsOnRidePost| Name | Description | Type | Additional information |
|---|---|---|---|
| DriverId | integer |
None. |
|
| isOnRide | boolean |
None. |
|
| RideId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"DriverId": 1,
"isOnRide": true,
"RideId": 3
}
application/xml, text/xml
Sample:
<AddIsOnRidePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.CurrentLocation.Post"> <DriverId>1</DriverId> <RideId>3</RideId> <isOnRide>true</isOnRide> </AddIsOnRidePost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AddIsOnRideResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| OnRide | CurrentLocationDetails |
None. |
Response Formats
application/json, text/json
Sample:
{
"OnRide": {
"CurrentLocationId": 1,
"DriverId": 1,
"IsOnRide": true,
"CurrentLocationLatLng": "sample string 2",
"CurrentLocationAddress": "sample string 3",
"CurrentLocationDateTime": "sample string 4",
"IsOnline": true,
"OnRideId": 1,
"LastOnlineDateTime": "sample string 5"
}
}
application/xml, text/xml
Sample:
<AddIsOnRideResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.CurrentLocation.Response">
<OnRide>
<CurrentLocationAddress>sample string 3</CurrentLocationAddress>
<CurrentLocationDateTime>sample string 4</CurrentLocationDateTime>
<CurrentLocationId>1</CurrentLocationId>
<CurrentLocationLatLng>sample string 2</CurrentLocationLatLng>
<DriverId>1</DriverId>
<IsOnRide>true</IsOnRide>
<IsOnline>true</IsOnline>
<LastOnlineDateTime>sample string 5</LastOnlineDateTime>
<OnRideId>1</OnRideId>
</OnRide>
</AddIsOnRideResponse>