Countries
Returns a list of all the countries with golf facilities available for booking. If connected
query parameter is set to true - returns only countries of the connected facilities.
List countries
To request the list of supported countries, send a request to below url.
GET /api/v3/countries
- Query Parameters
- connected:
e.g. true
(boolean, optional) - If set to true - only countries of the connected facilities.
- connected:
Listing of all countries can be done with a curl command like so :
curl -X GET -H 'Content-Type:application/json' --user [[username]]:[[password]] '[[base-url]]/api/v3/countries'
-
Response
{ "success": true, "data": [ "Netherlands", "United Kingdom", "Uruguay" ] }
Listing of countries of the connected facilities can be done with a curl command like this :
curl -X GET -H 'Content-Type:application/json' --user [[username]]:[[password]] '[[base-url]]/api/v3/countries?connected=true'
-
Response
{ "success": true, "data": [ "Netherlands" ] }
2.526