feat: enhance search functionality to include parent names and related fields across categories
This commit is contained in:
@@ -88,11 +88,11 @@ List all cities with pagination (admin view).
|
||||
|-------|------|----------|-------------|
|
||||
| `page` | integer | ❌ | Default: 1 |
|
||||
| `limit` | integer | ❌ | Default: 20 |
|
||||
| `search` | string | ❌ | Search in name |
|
||||
| `search` | string | ❌ | Matches `name`, `site_name`, `domain`, **or the parent province's name** (case-insensitive `LIKE`) |
|
||||
| `province_id` | integer | ❌ | Filter by province |
|
||||
|
||||
### Response `200`
|
||||
Paginated city list.
|
||||
Paginated city list. Each row already carries `province_name` alongside `province_id`.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user