Authentication (ยืนยันตัวตน) #
URL | /gapi/v1/authen |
Method | POST |
Header :
Name | Required | Type | Description |
---|---|---|---|
Authorization | Yes | String | ขึ้นต้นด้วย “Basic<1 space>” , followed by the username and password in the format "username:password" encoded in Base64. Example: 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 | /gapi/v1/uploadfile |
Method | POST |
Parameter :
Name | Required | Type | Description |
---|---|---|---|
file | Yes | String | The file is converted into a binary string. |
userId | Yes | String | user identity |
companyAbbr | Yes | String | Company abbreviation found in the Account Information |
groupName | Yes | String | User group found in the Account Information |
Responses :
Code | Description |
---|---|
202 | Accepted |
401 | Unauthorized |
403 | Forbidden – The user is not allow to use the API. |
404 | Not found |