POST api/Mobapi/Booking
Request Information
URI Parameters
None.
Body Parameters
Booking| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID | integer |
None. |
|
| PickupLocation | string |
None. |
|
| DropLocation | string |
None. |
|
| PickupLatitude | string |
None. |
|
| PickupLongtitude | string |
None. |
|
| DropLatitude | string |
None. |
|
| DropLongtitude | string |
None. |
|
| PickupDateTime | date |
None. |
|
| VechicleType | integer |
None. |
|
| Notes | string |
None. |
|
| TotalDistance | decimal number |
None. |
|
| TripPrice | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserID": 1,
"PickupLocation": "sample string 2",
"DropLocation": "sample string 3",
"PickupLatitude": "sample string 4",
"PickupLongtitude": "sample string 5",
"DropLatitude": "sample string 6",
"DropLongtitude": "sample string 7",
"PickupDateTime": "2026-01-12T16:08:55.4784233+05:30",
"VechicleType": 9,
"Notes": "sample string 10",
"TotalDistance": 11.1,
"TripPrice": 12.1
}
application/xml, text/xml
Sample:
<Booking xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entity"> <DropLatitude>sample string 6</DropLatitude> <DropLocation>sample string 3</DropLocation> <DropLongtitude>sample string 7</DropLongtitude> <Notes>sample string 10</Notes> <PickupDateTime>2026-01-12T16:08:55.4784233+05:30</PickupDateTime> <PickupLatitude>sample string 4</PickupLatitude> <PickupLocation>sample string 2</PickupLocation> <PickupLongtitude>sample string 5</PickupLongtitude> <TotalDistance>11.1</TotalDistance> <TripPrice>12.1</TripPrice> <UserID>1</UserID> <VechicleType>9</VechicleType> </Booking>
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. |