Add city prefix search API using local pincode DB
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s
This commit is contained in:
@@ -121,6 +121,33 @@ AUTH + SYSTEM APIS
|
||||
|
||||
- 401 Unauthorized (missing principal / user not found)
|
||||
|
||||
|
||||
- City search API is this one:
|
||||
|
||||
GET /geo/cities/search
|
||||
|
||||
What it does:
|
||||
|
||||
- Searches city names by prefix from local pincode directory table.
|
||||
- Returns unique city + state rows only.
|
||||
- Uses local DB only (no external API call in this endpoint).
|
||||
|
||||
Request body:
|
||||
|
||||
- None.
|
||||
|
||||
Query params:
|
||||
|
||||
- q (required, minimum 2 characters)
|
||||
- limit (optional, default 20, min 1, max 100)
|
||||
|
||||
- Allowed roles: authenticated Firebase user.
|
||||
|
||||
Error Codes
|
||||
|
||||
- 400 Bad Request (q too short)
|
||||
- 401 Unauthorized
|
||||
|
||||
================================================================================
|
||||
PROPERTY + USER APIS
|
||||
================================================================================
|
||||
|
||||
Reference in New Issue
Block a user