POST api/v1/trip

Request Information

URI Parameters

None.

Body Parameters

VehicleRequest
NameDescriptionTypeAdditional information
vehicle_No

Collection of string

None.

Datetime

DateTimeFilter

None.

Request Formats

application/json, text/json

Sample:
{
  "vehicle_No": [
    "sample string 1",
    "sample string 2"
  ],
  "Datetime": {
    "from": "2026-11-16T02:12:45.9178997+05:30",
    "to": "2026-11-16T02:12:45.9178997+05:30"
  }
}

application/xml, text/xml

Sample:
<VehicleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FTSMDLClassLibrary">
  <Datetime>
    <from>2026-11-16T02:12:45.9178997+05:30</from>
    <to>2026-11-16T02:12:45.9178997+05:30</to>
  </Datetime>
  <vehicle_No xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </vehicle_No>
</VehicleRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.