GET api/LocationByCountry?CountryName={CountryName}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
CountryName | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of APILocationName | Description | Type | Additional information |
---|---|---|---|
CityID | integer |
None. |
|
CountryName | string |
None. |
|
AreaID | integer |
None. |
|
AreaName | string |
None. |
|
LocationName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "CityID": 1, "CountryName": "sample string 2", "AreaID": 1, "AreaName": "sample string 3", "LocationName": "sample string 4" }, { "CityID": 1, "CountryName": "sample string 2", "AreaID": 1, "AreaName": "sample string 3", "LocationName": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfAPILocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgTravelSoftCore.Model"> <APILocation> <AreaID>1</AreaID> <AreaName>sample string 3</AreaName> <CityID>1</CityID> <CountryName>sample string 2</CountryName> <LocationName>sample string 4</LocationName> </APILocation> <APILocation> <AreaID>1</AreaID> <AreaName>sample string 3</AreaName> <CityID>1</CityID> <CountryName>sample string 2</CountryName> <LocationName>sample string 4</LocationName> </APILocation> </ArrayOfAPILocation>