SelfService - Get contact list
API Url
Used in Self-service for loading contacts used when inserting an absence request. The values depend on the web-part setup.
GET
http://localhost:16010/ProMarkREST/rest/SelfService/contacts
Permissions: user
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| contacts | Object[] | Collection of contact persons. |
| empInitials | String | Employee initials. |
| empName | String | Employee full name. |
| empNo | String | Employee number. |
| order | Number | Use for sorting contact list. |
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": {"contacts": [{"order": 1,"empNo": "220","empName": "Andreea Toma","empInitials": "AMT"},{"order": 2,"empNo": "210","empName": "Sebastian Podaru","empInitials": "SEP"}]},"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. |