GET api/CountryCodes
Returns a list of all available country codes and names.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
List of country codes with their corresponding country names.
Collection of CountryCodeDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
None. |
|
| Name | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"code": "sample string 1",
"name": "sample string 2"
},
{
"code": "sample string 1",
"name": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfCountryCodeDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Controllers">
<CountryCodeDTO>
<Code>sample string 1</Code>
<Name>sample string 2</Name>
</CountryCodeDTO>
<CountryCodeDTO>
<Code>sample string 1</Code>
<Name>sample string 2</Name>
</CountryCodeDTO>
</ArrayOfCountryCodeDTO>