POST api/EndRide

Request Information

URI Parameters

None.

Body Parameters

EndRidePost
NameDescriptionTypeAdditional information
RideId

integer

None.

DriverId

integer

None.

EndingPointLatLng

string

None.

EndingPointAddress

string

None.

EndingPointDateTime

date

None.

RideDistance

decimal number

None.

TotalRideDistance

decimal number

None.

EstimatedRideDuration

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RideId": 1,
  "DriverId": 2,
  "EndingPointLatLng": "sample string 3",
  "EndingPointAddress": "sample string 4",
  "EndingPointDateTime": "2025-12-17T07:09:54.1669253+01:00",
  "RideDistance": 6.1,
  "TotalRideDistance": 7.1,
  "EstimatedRideDuration": 8
}

application/xml, text/xml

Sample:
<EndRidePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.Ride.Post">
  <DriverId>2</DriverId>
  <EndingPointAddress>sample string 4</EndingPointAddress>
  <EndingPointDateTime>2025-12-17T07:09:54.1669253+01:00</EndingPointDateTime>
  <EndingPointLatLng>sample string 3</EndingPointLatLng>
  <EstimatedRideDuration>8</EstimatedRideDuration>
  <RideDistance>6.1</RideDistance>
  <RideId>1</RideId>
  <TotalRideDistance>7.1</TotalRideDistance>
</EndRidePost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

EndRideResponse
NameDescriptionTypeAdditional information
EndRideId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "EndRideId": 1
}

application/xml, text/xml

Sample:
<EndRideResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.Ride.Response">
  <EndRideId>1</EndRideId>
</EndRideResponse>