GET api/Country/GetCountries
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
GetCountriesResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseObject | Collection of CGCountry |
None. |
|
| Code | ResponseCode |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResponseObject": [
{
"CountryId": 1,
"CountryName": "sample string 2"
},
{
"CountryId": 1,
"CountryName": "sample string 2"
}
],
"Code": 0,
"Message": "sample string 1"
}
application/xml, text/xml
Sample:
<GetCountriesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.CasualGolf.WebApi.Contracts">
<Code>None</Code>
<Message>sample string 1</Message>
<ResponseObject xmlns:d2p1="http://schemas.datacontract.org/2004/07/DotGolf.Data">
<d2p1:CGCountry>
<d2p1:CountryId>1</d2p1:CountryId>
<d2p1:CountryName>sample string 2</d2p1:CountryName>
</d2p1:CGCountry>
<d2p1:CGCountry>
<d2p1:CountryId>1</d2p1:CountryId>
<d2p1:CountryName>sample string 2</d2p1:CountryName>
</d2p1:CGCountry>
</ResponseObject>
</GetCountriesResponse>