Get village

คำอธิบาย เป็น Api สำหรับดึง
/hdc/get?table=village

Request URL

https://sk-api.khonsongkhla.com/hdc/get?table=village?{param}

Path Parameters

Name Type Required Description
param String - sort=ASC|DESC
sortBy=[Field name]
offset=(int)[Row start]
limit=(int)[Row limit]
[Field name]=[value]

Response Body

Name Type Description
HOSPCODE varchar(5)
VID varchar(8)
NTRADITIONAL decimal(4,0)
NMONK decimal(4,0)
NRELIGIONLEADER decimal(4,0)
NBROADCAST decimal(2,0)
NRADIO decimal(2,0)
NPCHC decimal(2,0)
NCLINIC decimal(3,0)
NDRUGSTORE decimal(3,0)
NCHILDCENTER decimal(3,0)
NPSCHOOL decimal(2,0)
NSSCHOOL decimal(2,0)
NTEMPLE decimal(2,0)
NRELIGIOUSPLACE decimal(2,0)
NMARKET decimal(2,0)
NSHOP decimal(3,0)
NFOODSHOP decimal(3,0)
NSTALL decimal(3,0)
NRAINTANK decimal(3,0)
NCHICKENFARM decimal(3,0)
NPIGFARM decimal(3,0)
WASTEWATER char(1)
GARBAGE char(1)
NFACTORY decimal(3,0)
LATITUDE decimal(10,6)
LONGITUDE decimal(10,6)
OUTDATE date
NUMACTUALLY decimal(2,0)
RISKTYPE decimal(3,0)
NUMSTATELESS decimal(3,0)
NEXERCISECLUB decimal(3,0)
NOLDERLYCLUB decimal(3,0)
NDISABLECLUB decimal(3,0)
NNUMBERONECLUB decimal(3,0)
D_UPDATE datetime

Request URL Example

https://sk-api.khonsongkhla.com/hdc/get?table=village&limit=2

Response Example


{
    "code": 400,
    "message": "no_permission",
    "message_th": "ไม่มีสิทธิ์อ่านข้อมูล"
}