POST api/v1/trips/SearchTrip
Request Information
URI Parameters
None.
Body Parameters
DHSearchTripModel| Name | Description | Type | Additional information |
|---|---|---|---|
| fromCityId | integer |
Required |
|
| fromCity | string |
Required |
|
| toCityId | integer |
Required |
|
| toCity | string |
Required |
|
| tripDate | string |
Required |
|
| nationalityCode | string |
None. |
|
| seatCount | integer |
None. |
|
| serviceTypeId | string |
None. |
|
| pageNumber | integer |
None. |
|
| pageSize | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"fromCityId": 1,
"fromCity": "sample string 1",
"toCityId": 1,
"toCity": "sample string 2",
"tripDate": "sample string 3",
"nationalityCode": "sample string 4",
"seatCount": 1,
"serviceTypeId": "sample string 5",
"pageNumber": 1,
"pageSize": 1
}
application/xml, text/xml
Sample:
<DHSearchTripModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DH.API.Models.DH"> <fromCity>sample string 1</fromCity> <fromCityId>1</fromCityId> <nationalityCode>sample string 4</nationalityCode> <pageNumber>1</pageNumber> <pageSize>1</pageSize> <seatCount>1</seatCount> <serviceTypeId>sample string 5</serviceTypeId> <toCity>sample string 2</toCity> <toCityId>1</toCityId> <tripDate>sample string 3</tripDate> </DHSearchTripModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |