Add public country search API backed by country_reference
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s
This commit is contained in:
@@ -148,6 +148,32 @@ AUTH + SYSTEM APIS
|
||||
- 400 Bad Request (q too short)
|
||||
- 401 Unauthorized
|
||||
|
||||
|
||||
- Country search API is this one:
|
||||
|
||||
GET /geo/countries/search
|
||||
|
||||
What it does:
|
||||
|
||||
- Searches countries from local country_reference table.
|
||||
- Case-insensitive match on country name, official name, ISO alpha-2, and ISO alpha-3.
|
||||
- Example: q=IND returns matches like India and related country names.
|
||||
|
||||
Request body:
|
||||
|
||||
- None.
|
||||
|
||||
Query params:
|
||||
|
||||
- q (required, minimum 3 characters)
|
||||
- limit (optional, default 20, min 1, max 100)
|
||||
|
||||
- Allowed roles: Public endpoint.
|
||||
|
||||
Error Codes
|
||||
|
||||
- 400 Bad Request (q too short)
|
||||
|
||||
================================================================================
|
||||
PROPERTY + USER APIS
|
||||
================================================================================
|
||||
|
||||
Reference in New Issue
Block a user