GET api/districts/by_proviceCode_amphurCode?province={province}&hur={amphur}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
province | string |
Required |
|
amphur | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of districtName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
create_time | date |
None. |
|
modify_time | date |
None. |
|
modify_by | integer |
None. |
|
record_status_id | signed byte |
None. |
|
title | string |
None. |
|
prov_id | integer |
None. |
|
prov_amphur_id | integer |
None. |
|
district_id | integer |
None. |
|
prov_code | string |
None. |
|
amphur_code | string |
None. |
|
district_code | string |
None. |
|
postcode | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "id": 1, "create_time": "2024-12-07T18:40:18.1118907+07:00", "modify_time": "2024-12-07T18:40:18.1118907+07:00", "modify_by": 1, "record_status_id": 64, "title": "sample string 3", "prov_id": 1, "prov_amphur_id": 1, "district_id": 1, "prov_code": "sample string 4", "amphur_code": "sample string 5", "district_code": "sample string 6", "postcode": "sample string 7" }, { "id": 1, "create_time": "2024-12-07T18:40:18.1118907+07:00", "modify_time": "2024-12-07T18:40:18.1118907+07:00", "modify_by": 1, "record_status_id": 64, "title": "sample string 3", "prov_id": 1, "prov_amphur_id": 1, "district_id": 1, "prov_code": "sample string 4", "amphur_code": "sample string 5", "district_code": "sample string 6", "postcode": "sample string 7" } ]