feat(clinic): update filtering logic to use clinic address for city/state
This commit is contained in:
+5
-1
@@ -180,7 +180,11 @@ List clinics with pagination.
|
||||
| `page` | integer | ❌ | Default: 1 |
|
||||
| `limit` | integer | ❌ | Default: 20 |
|
||||
| `name` | string | ❌ | Search by clinic name |
|
||||
| `city` | string | ❌ | Filter by city |
|
||||
| `city` | integer | ❌ | City id — filters by the **clinic address's** city |
|
||||
| `state` | integer | ❌ | Province id — filters by the **clinic address's** province |
|
||||
| `specialty` | integer | ❌ | Specialty id |
|
||||
|
||||
> `city`/`state` are matched against the clinic's address (`DoctorAddress` linked by `clinic_id`), not a field on the clinic itself.
|
||||
|
||||
### Response `200`
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user