GET api/IsoCountry?type={type}
Gets a list of country.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
type |
List Type. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of IsoCountryName | Description | Type | Additional information |
---|---|---|---|
CountryName | string |
None. |
|
CountryCode | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "CountryName": "sample string 1", "CountryCode": "sample string 2" }, { "CountryName": "sample string 1", "CountryCode": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfIsoCountry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models"> <IsoCountry> <CountryCode>sample string 2</CountryCode> <CountryName>sample string 1</CountryName> </IsoCountry> <IsoCountry> <CountryCode>sample string 2</CountryCode> <CountryName>sample string 1</CountryName> </IsoCountry> </ArrayOfIsoCountry>