GET v1/Countries
Get a list with all available Countries.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of the Country objects.
Collection of Country| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Gets or sets the identifier. |
integer |
Required |
| Code |
Gets or sets the code. |
string |
Required Max length: 50 |
| Name |
Gets or sets the name. |
string |
Required Max length: 50 |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3"
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfCountry xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Country>
<Id>1</Id>
<Code>sample string 2</Code>
<Name>sample string 3</Name>
</Country>
<Country>
<Id>1</Id>
<Code>sample string 2</Code>
<Name>sample string 3</Name>
</Country>
</ArrayOfCountry>