POST api/job/create

Request Information

URI Parameters

None.

Body Parameters

JobRequest
NameDescriptionTypeAdditional information
Phone

string

None.

JobType

string

None.

PickupAddress

string

None.

PickupLat

decimal number

None.

PickupLng

decimal number

None.

DropoffAddress

string

None.

DropoffLat

decimal number

None.

DropoffLng

decimal number

None.

VehicleType

string

None.

Notes

string

None.

EstimatedFare

decimal number

None.

EstimatedDistance

decimal number

None.

PackageDescription

string

None.

ReceiverName

string

None.

ReceiverPhone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Phone": "sample string 1",
  "JobType": "sample string 2",
  "PickupAddress": "sample string 3",
  "PickupLat": 1.1,
  "PickupLng": 1.1,
  "DropoffAddress": "sample string 4",
  "DropoffLat": 1.1,
  "DropoffLng": 1.1,
  "VehicleType": "sample string 5",
  "Notes": "sample string 6",
  "EstimatedFare": 1.0,
  "EstimatedDistance": 1.1,
  "PackageDescription": "sample string 7",
  "ReceiverName": "sample string 8",
  "ReceiverPhone": "sample string 9"
}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.