POST api/Locations
Request Information
URI Parameters
None.
Body Parameters
LocationsRequest| Name | Description | Type | Additional 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:
Response Information
Resource Description
ReturningParameters| Name | Description | Type | Additional 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>