Authentication (ยืนยันตัวตน) #
URL | /webapi/v1/authen |
Method | POST |
Header :
Name | Required | Type | Description |
---|---|---|---|
Authorization | Yes | String | ขึ้นต้นด้วย “Basic<1 space>” ต่อด้วย username “:” password ที่เข้ารหัสด้วย base64 เช่น Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== |
Responses :
Code | Description |
---|---|
200 | Successfully |
401 | Unauthorized – The user was not found or incorrect |
403 | Forbidden – The user is not allow to use the API. |
404 | Not found – The token was not found or incorrect |
Upload file (นำเข้าข้อมูล) #
URL | /webapi/v1/uploadfile |
Method | POST |
Parameter :
Name | Required | Type | Description |
---|---|---|---|
file | Yes | String | ไฟล์ที่ถูกแปลงเป็น string binary |
userId | Yes | String | รหัสผู้ใช้งาน |
companyAbbr | Yes | String | ชื่อย่อบริษัท (Abbr) ที่อยู่ใน Account Information |
groupName | Yes | String | ชื่อกลุ่มผู้ใช้งาน ที่อยู่ใน Account Information |
Responses :
Code | Description |
---|---|
202 | Accepted |
401 | Unauthorized |
403 | Forbidden – The user is not allow to use the API. |
404 | Not found |