POST /api/v1/utility/country, now resolved from the path instead of the request body.App\Http\Controllers\Api\V1\Public\CountryController::show()api.v1.public.countries.showthrottle:public. See docs/api/README.md ยง14.GET/api/v1/public/countries/{code}| Parameter | Type | Description |
|---|---|---|
{code} | string(2) | ISO 3166-1 alpha-2 country code. Case-insensitive: uppercased server-side. Constrained by the route to two letters ([A-Za-z]{2}); a request that does not match this shape at all does not reach the controller |
200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": {
"name": "Italy",
"official_name": "Italian Republic",
"native_name": "Italia",
"native_official_name": "Repubblica italiana",
"iso_3166_1_alpha2": "IT",
"iso_3166_1_alpha3": "ITA",
"calling_code": "39",
"currency": "EUR",
"emoji": "๐ฎ๐น"
}
}| Field | Type | Nullable | Always present | Description |
|---|---|---|---|---|
data.name | string | No | Yes | English name |
data.official_name | string | No | Yes | English official name |
data.native_name | string | No | Yes | Name in the country's own language |
data.native_official_name | string | No | Yes | Official name in the country's own language |
data.iso_3166_1_alpha2 | string | No | Yes | Two-letter code |
data.iso_3166_1_alpha3 | string | No | Yes | Three-letter code |
data.calling_code | string | No | Yes | International dialling prefix, without + |
data.currency | string | No | Yes | ISO 4217 code |
data.emoji | string | No | Yes | Flag emoji |
404 Not Found โ code not recognisedZZ. Captured live:{
"success": false,
"status": "error",
"message": "Country not found"
}429 Too Many Requestspublic limiter (300 requests per minute, keyed by IP). No errors key.{
"success": false,
"status": "error",
"message": "Too many requests"
}POST /api/v1/utility/country (removed; see docs/api/_archive/utility/POST_country.md). Unlike the removed endpoint, an invalid code (wrong length, not two letters) never reaches the controller at all - the route's where('code', '[A-Za-z]{2}') constraint answers the framework's default 404 for a route that doesn't match, before any validation runs.curl --location 'https://test.diveraid.com/api/v1/public/countries/'{
"status": "success",
"message": "string",
"data": {}
}