POST api/Locations

Request Information

URI Parameters

None.

Body Parameters

LocationsRequest
NameDescriptionTypeAdditional information
language

string

None.

cityName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "languageField": "sample string 1",
  "cityNameField": "sample string 2"
}

application/xml, text/xml

Sample:
<LocationsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentACarService.JupicarService">
  <cityNameField>sample string 2</cityNameField>
  <languageField>sample string 1</languageField>
</LocationsRequest>

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

Response Information

Resource Description

ReturningParameters
NameDescriptionTypeAdditional information
ErrorCode

integer

None.

ErrorMessage

string

None.

ErrorType

string

None.

ObjectList

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "ErrorMessage": "sample string 2",
  "ErrorType": "sample string 3",
  "ObjectList": {}
}

application/xml, text/xml

Sample:
<ReturningParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentACarService.Models">
  <ErrorCode>1</ErrorCode>
  <ErrorMessage>sample string 2</ErrorMessage>
  <ErrorType>sample string 3</ErrorType>
  <ObjectList />
</ReturningParameters>