GET api/Countries
Fetch a list of all countries
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
ListResultOfCountry| Name | Description | Type | Additional information |
|---|---|---|---|
| TotalCount | integer |
None. |
|
| Items | Collection of Country |
None. |
Response Formats
application/json, text/json
Sample:
{
"TotalCount": 1,
"Items": [
{
"Code": "sample string 1",
"Name": "sample string 2"
},
{
"Code": "sample string 1",
"Name": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<ListResultOfCountryHWVxl9UY xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ControlKeeper.ApiModel">
<Items>
<Country>
<Code>sample string 1</Code>
<Name>sample string 2</Name>
</Country>
<Country>
<Code>sample string 1</Code>
<Name>sample string 2</Name>
</Country>
</Items>
<TotalCount>1</TotalCount>
</ListResultOfCountryHWVxl9UY>
