POST api/CallTaxi/UserCall

Request Information

URI Parameters

None.

Body Parameters

UserCallTaxi
NameDescriptionTypeAdditional information
Start_Address

string

None.

Target_Address

string

None.

Start_Latitude

decimal number

None.

Start_Longitude

decimal number

None.

Target_Latitude

decimal number

None.

Target_Longitude

decimal number

None.

Distance

decimal number

None.

Feature

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Start_Address": "sample string 1",
  "Target_Address": "sample string 2",
  "Start_Latitude": 3.1,
  "Start_Longitude": 4.1,
  "Target_Latitude": 5.1,
  "Target_Longitude": 6.1,
  "Distance": 7.1,
  "Feature": 8
}

application/xml, text/xml

Sample:
<UserCallTaxi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaxiAppAPI.ViewModel">
  <Distance>7.1</Distance>
  <Feature>8</Feature>
  <Start_Address>sample string 1</Start_Address>
  <Start_Latitude>3.1</Start_Latitude>
  <Start_Longitude>4.1</Start_Longitude>
  <Target_Address>sample string 2</Target_Address>
  <Target_Latitude>5.1</Target_Latitude>
  <Target_Longitude>6.1</Target_Longitude>
</UserCallTaxi>

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

Response Information

Resource Description

CallTaxiPreviewModel
NameDescriptionTypeAdditional information
TaxiFare

integer

None.

TaxiFareMemo

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TaxiFare": 1,
  "TaxiFareMemo": "sample string 2"
}

application/xml, text/xml

Sample:
<CallTaxiPreviewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaxiAppAPI.ViewModel">
  <TaxiFare>1</TaxiFare>
  <TaxiFareMemo>sample string 2</TaxiFareMemo>
</CallTaxiPreviewModel>