POST api/my/basura/trucks/histories

Request Information

URI Parameters

None.

Body Parameters

TruckHistoryCreateDTO
NameDescriptionTypeAdditional information
truckid

integer

None.

lat

decimal number

None.

lon

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "truckid": 1,
  "lat": 1.1,
  "lon": 1.1
}

application/xml, text/xml

Sample:
<TruckHistoryCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.DTO">
  <lat>1.1</lat>
  <lon>1.1</lon>
  <truckid>1</truckid>
</TruckHistoryCreateDTO>

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 'TruckHistoryCreateDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.