GET api/Countries/GetCountry/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Country| Name | Description | Type | Additional information |
|---|---|---|---|
| CountryId | integer |
None. |
|
| CountryName | string |
Required String length: inclusive between 0 and 50 |
|
| CountryIsocode | string |
String length: inclusive between 0 and 3 |
|
| DefaultLanguageId | integer |
None. |
|
| TelephoneCountryPrefix | string |
String length: inclusive between 0 and 5 |
|
| ObjectState | ObjectState |
None. |
Response Formats
application/json, text/json
Sample:
{
"countryId": 1,
"countryName": "sample string 2",
"countryIsocode": "sample string 3",
"defaultLanguageId": 4,
"telephoneCountryPrefix": "sample string 5",
"objectState": 0
}
application/xml, text/xml
Sample:
<Country xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Models"> <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState> <CountryId>1</CountryId> <CountryIsocode>sample string 3</CountryIsocode> <CountryName>sample string 2</CountryName> <DefaultLanguageId>4</DefaultLanguageId> <TelephoneCountryPrefix>sample string 5</TelephoneCountryPrefix> </Country>