POST api/Taxi/AddTaxiDriver

Request Information

URI Parameters

None.

Body Parameters

TaxiDriver
NameDescriptionTypeAdditional information
TaxiDriverID

integer

None.

FirstName

string

None.

MiddleName

string

None.

LastName

string

None.

Unit

string

None.

Phone

string

None.

MobileAppUserID

string

None.

Email

string

None.

CompanyID

integer

None.

Status

byte

None.

Request Formats

application/json, text/json

Sample:
{
  "TaxiDriverID": 1,
  "FirstName": "sample string 2",
  "MiddleName": "sample string 3",
  "LastName": "sample string 4",
  "Unit": "sample string 5",
  "Phone": "sample string 6",
  "MobileAppUserID": "sample string 7",
  "Email": "sample string 8",
  "CompanyID": 9,
  "Status": 64
}

application/xml, text/xml

Sample:
<TaxiController.TaxiDriver xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomerAPI.Controllers">
  <CompanyID>9</CompanyID>
  <Email>sample string 8</Email>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 4</LastName>
  <MiddleName>sample string 3</MiddleName>
  <MobileAppUserID>sample string 7</MobileAppUserID>
  <Phone>sample string 6</Phone>
  <Status>64</Status>
  <TaxiDriverID>1</TaxiDriverID>
  <Unit>sample string 5</Unit>
</TaxiController.TaxiDriver>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>