GET api/Country
Get all Countries
Request Information
URI Parameters
None.
Body Parameters
None.
Remarks
None.
Example
None.
Response Information
Resource Description
Collection of CountryResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id of the country e.g SE |
string |
None. |
| OfficialShortName |
Official short name of the country e.g SWEDEN |
string |
None. |
| IsEUCountry |
If the country belongs to European union or not |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "sample string 1",
"OfficialShortName": "sample string 2",
"IsEUCountry": true
},
{
"Id": "sample string 1",
"OfficialShortName": "sample string 2",
"IsEUCountry": true
}
]
application/xml, text/xml
Sample:
<ArrayOfCountryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
<CountryResponse>
<Id>sample string 1</Id>
<IsEUCountry>true</IsEUCountry>
<OfficialShortName>sample string 2</OfficialShortName>
</CountryResponse>
<CountryResponse>
<Id>sample string 1</Id>
<IsEUCountry>true</IsEUCountry>
<OfficialShortName>sample string 2</OfficialShortName>
</CountryResponse>
</ArrayOfCountryResponse>