ข้อมูลโรงงานน้ำตาล (Factory)

API สำหรับเชื่อมโยงข้อมูลโรงงานน้ำตาล สำหรับเปิดเผยสาธารณะ

/get


Parameter
Name Description
code required string รหัสโรงงาน


Responses
Code Description
200 the request has succeeded.

Example Value

                                        
                                            {
                                              "code": "string",
                                              "longitude": 0,
                                              "tambon": "string",
                                              "company_name": "string",
                                              "changwat": "string",
                                              "region": "string",
                                              "name": "string",
                                              "amphoe": "string",
                                              "latitude": 0
                                            }
                                        
                                    
400 One of the given parameter is not valid
401 The user is not authorized. Authentication is required
403 You don't have the permission to access the requested resource.
404 Requested resource not found

/search


Parameter
Name Description
code string รหัสโรงงาน
name string ชื่อโรงงาน

Responses
Code Description
200 the request has succeeded.

Example Value

                                        
                                            [
                                              {
                                                "code": "string",
                                                "name": "string"
                                              }
                                            ]
                                        
                                    
400 One of the given parameter is not valid
401 The user is not authorized. Authentication is required
403 You don't have the permission to access the requested resource.
404 Requested resource not found