POST api/UserFavoriteLocation/PlacesSearch

Request Information

URI Parameters

None.

Body Parameters

SearchSelfDataViewModel
NameDescriptionTypeAdditional information
KeyWord

string

None.

Request Formats

application/json, text/json

Sample:
{
  "KeyWord": "sample string 1"
}

application/xml, text/xml

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

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

Response Information

Resource Description

AutoCompleteResult
NameDescriptionTypeAdditional information
status

string

None.

predictions

Collection of AutoCompletePrediction

None.

Response Formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "predictions": [
    {
      "description": "sample string 1",
      "id": "sample string 2",
      "place_id": "sample string 3",
      "reference": "sample string 4"
    },
    {
      "description": "sample string 1",
      "id": "sample string 2",
      "place_id": "sample string 3",
      "reference": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<AutoCompleteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaxiAppAPI.ViewModel">
  <AutoCompletePlaces>
    <AutoCompletePrediction>
      <Description>sample string 1</Description>
      <ID>sample string 2</ID>
      <Place_ID>sample string 3</Place_ID>
      <Reference>sample string 4</Reference>
    </AutoCompletePrediction>
    <AutoCompletePrediction>
      <Description>sample string 1</Description>
      <ID>sample string 2</ID>
      <Place_ID>sample string 3</Place_ID>
      <Reference>sample string 4</Reference>
    </AutoCompletePrediction>
  </AutoCompletePlaces>
  <Status>sample string 1</Status>
</AutoCompleteResult>