SelfService - Get favourite co-workers
API Url
Used in Self-service for loading employee favourite co-workers. Information from 'info1' and 'info2' depend on web-part setup.
GET
http://localhost:16010/ProMarkREST/rest/SelfService/employees/{emp_id}/co-workers
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| emp_id | String | Employee ID for whoom to get favourite co-workers. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| coWorkers | Object[] | Collection of co-workers. |
| empId | String | Employee ID. |
| empName | String | Employee full name. |
info1optional | String | Custom information 1. |
info2optional | String | Custom information 2. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"coWorkers": [{"empId": "392","empName": "Michael Kors","info1": "Designers","info2": "MK"}]},"errorCode": 0"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |