GET api/Countries/GetCountries
Get list of countries
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Return the list of active countries, with the nationalities
Collection of VCountriesName | Description | Type | Additional information |
---|---|---|---|
CountryName |
Country Name |
string |
None. |
CountryCode |
Country Code ISO3 |
string |
None. |
CountryNationality |
Country Nationality |
string |
None. |
IsTopCountry |
Is a Top Country? |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "$id": "1", "CountryName": "sample string 1", "CountryCode": "sample string 2", "CountryNationality": "sample string 3", "IsTopCountry": true }, { "$ref": "1" } ]
application/xml, text/xml
Sample:
<ArrayOfVCountries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <VCountries> <CountryName>sample string 1</CountryName> <CountryCode>sample string 2</CountryCode> <CountryNationality>sample string 3</CountryNationality> <IsTopCountry>true</IsTopCountry> </VCountries> <VCountries> <CountryName>sample string 1</CountryName> <CountryCode>sample string 2</CountryCode> <CountryNationality>sample string 3</CountryNationality> <IsTopCountry>true</IsTopCountry> </VCountries> </ArrayOfVCountries>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].CountryName" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].CountryCode" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].CountryNationality" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].IsTopCountry" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].CountryName" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].CountryCode" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].CountryNationality" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].IsTopCountry" True --MultipartDataMediaFormatterBoundary1q2w3e--