POST api/drivers/location

Request Information

URI Parameters

None.

Body Parameters

DriverLocationUpdateRequest
NameDescriptionTypeAdditional information
DriverId

integer

None.

Lat

decimal number

None.

Lng

decimal number

None.

Accuracy

decimal number

None.

IsOnline

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "driverId": 1,
  "lat": 2.0,
  "lng": 3.0,
  "accuracy": 4.0,
  "isOnline": true
}

application/xml, text/xml

Sample:
<DriverLocationUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Del.Api.Models.Dtos">
  <Accuracy>4</Accuracy>
  <DriverId>1</DriverId>
  <IsOnline>true</IsOnline>
  <Lat>2</Lat>
  <Lng>3</Lng>
</DriverLocationUpdateRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DriverLocationUpdateRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.