GET api/ListCountries
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
ReturnObjectOfListOfCountryList| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccess | boolean |
None. |
|
| Messages | Collection of string |
None. |
|
| ErrorCode | integer |
None. |
|
| Response | Collection of CountryList |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccess": true,
"Messages": [
"sample string 1",
"sample string 2"
],
"ErrorCode": 2,
"Response": [
{
"CountryName": "sample string 1",
"CountryCode": "sample string 2"
},
{
"CountryName": "sample string 1",
"CountryCode": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<ReturnObjectOfListOfCountryList xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<IsSuccess>true</IsSuccess>
<Messages>
<string>sample string 1</string>
<string>sample string 2</string>
</Messages>
<ErrorCode>2</ErrorCode>
<Response>
<CountryList>
<CountryName>sample string 1</CountryName>
<CountryCode>sample string 2</CountryCode>
</CountryList>
<CountryList>
<CountryName>sample string 1</CountryName>
<CountryCode>sample string 2</CountryCode>
</CountryList>
</Response>
</ReturnObjectOfListOfCountryList>