SelfService - Get all co-workers
API Url
Used in Self-service for loading all co-workers matching the current employee, according to setup. Information from 'info1' and 'info2' depends on web-part setup.
GET
http://localhost:16010/ProMarkREST/rest/SelfService/co-workers
Permissions: user
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. |