GET api/CountryData/getByCode?code={code}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| code | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of Country| Name | Description | Type | Additional information |
|---|---|---|---|
| CountryCodeAlfaChar3 | string |
None. |
|
| CountryCodeAlfaChar2 | string |
None. |
|
| NameSerCyrl | string |
None. |
|
| NameSerLat | string |
None. |
|
| NameEng | string |
None. |
Response Formats
application/json, text/json, application/cloudevents+json
Sample:
[
{
"CountryCodeAlfaChar3": "sample string 1",
"CountryCodeAlfaChar2": "sample string 2",
"NameSerCyrl": "sample string 3",
"NameSerLat": "sample string 4",
"NameEng": "sample string 5"
},
{
"CountryCodeAlfaChar3": "sample string 1",
"CountryCodeAlfaChar2": "sample string 2",
"NameSerCyrl": "sample string 3",
"NameSerLat": "sample string 4",
"NameEng": "sample string 5"
}
]
text/plain
Sample:
[{"CountryCodeAlfaChar3":"sample string 1","CountryCodeAlfaChar2":"sample string 2","NameSerCyrl":"sample string 3","NameSerLat":"sample string 4","NameEng":"sample string 5"},{"CountryCodeAlfaChar3":"sample string 1","CountryCodeAlfaChar2":"sample string 2","NameSerCyrl":"sample string 3","NameSerLat":"sample string 4","NameEng":"sample string 5"}]
application/xml, text/xml
Sample:
<ArrayOfCountry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
<Country>
<CountryCodeAlfaChar2>sample string 2</CountryCodeAlfaChar2>
<CountryCodeAlfaChar3>sample string 1</CountryCodeAlfaChar3>
<NameEng>sample string 5</NameEng>
<NameSerCyrl>sample string 3</NameSerCyrl>
<NameSerLat>sample string 4</NameSerLat>
</Country>
<Country>
<CountryCodeAlfaChar2>sample string 2</CountryCodeAlfaChar2>
<CountryCodeAlfaChar3>sample string 1</CountryCodeAlfaChar3>
<NameEng>sample string 5</NameEng>
<NameSerCyrl>sample string 3</NameSerCyrl>
<NameSerLat>sample string 4</NameSerLat>
</Country>
</ArrayOfCountry>