Add public country search API backed by country_reference
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s

This commit is contained in:
androidlover5842
2026-02-07 16:47:11 +05:30
parent 71c10193a3
commit c39188d453
5 changed files with 160 additions and 0 deletions

View File

@@ -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
================================================================================