token: {your-api-key}GET/api/v1/dive_center/country200 OK{
"AU": "Australia",
"HR": "Croatia",
"EG": "Egypt",
"FR": "France",
"DE": "Germany",
"GR": "Greece",
"IT": "Italy",
"MT": "Malta",
"MX": "Mexico",
"ES": "Spain",
"TH": "Thailand",
"AE": "United Arab Emirates",
"US": "United States"
}"IT")"Italy")401 - Missing or invalid API Key{
"error": "Access Denied!",
"message": "No API Key provided.",
"statusCode": 401
}POST /api/v1/dive_center to populate a country dropdown, so the user can filter dive centers by country without needing to know ISO codes.1. GET /api/v1/dive_center/country → populate "Select country" dropdown
2. POST /api/v1/dive_center → { "country": "IT" } filters dive centers in Italystatus = true).DiveCenter.country records - not from a separate table.asort()), not by ISO code.POST /api/v1/dive_center with a country filter for that.docs/api/search/GET_dive_center_country.mdcurl --location 'https://test.diveraid.com/api/v1/dive_center/country?search=&country=' \
--header 'token: <api-key>'{
"success": true,
"message": "string",
"total": 0,
"data": [
{
"raid_id": "string",
"name": "string",
"email": "string",
"country": "string",
"city": "string",
"mobile": "string",
"manager": "string",
"distributor": "string",
"logo": "string",
"collaborators": {
"property1": "string",
"property2": "string"
},
"socials": {
"property1": "string",
"property2": "string"
},
"expire_date": "2019-08-24"
}
]
}