Staffs - Request Staff information
GET yourdomain.com/api/staffs/:id
Header
json
Field | Type | Description |
---|---|---|
Authorization | String |
Basic Access Authentication token. |
Parameter
json
Field | Type | Description |
---|---|---|
id | Number |
Staff unique ID. |
Success 200
json
Field | Type | Description |
---|---|---|
Staff | Object |
information. |
Error 4xx
json
Name | Description |
---|---|
StaffNotFound |
The id of the Staff was not found. |
HTTP/1.1 200 OK
{
"staffid": "8",
"email": "data1.gsts@gmail.com",
"firstname": "Đào Quang Dân",
"lastname": "",
"facebook": "",
"linkedin": "",
"phonenumber": "",
"skype": "",
"password": "$2a$08$ySLokLAM.AqmW9ZjY2YREO0CIrd5K4Td\/Bpfp8d9QJamWNUfreQuK",
"datecreated": "2019-02-25 09:11:31",
"profile_image": "8.png",
...
}
HTTP/1.1 404 Not Found
{
"status": false,
"message": "No data were found"
}