POST api/Booking/CreateBooking

Request Information

URI Parameters

None.

Body Parameters

CreateBookingRequest
NameDescriptionTypeAdditional information
CustomerID

integer

None.

VehicleTypeID

integer

None.

PickupAddress

string

None.

DropAddress

string

None.

PickupLat

decimal number

None.

PickupLong

decimal number

None.

DropLat

decimal number

None.

DropLong

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerID": 1,
  "VehicleTypeID": 2,
  "PickupAddress": "sample string 3",
  "DropAddress": "sample string 4",
  "PickupLat": 5.0,
  "PickupLong": 6.0,
  "DropLat": 7.0,
  "DropLong": 8.0
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.