ProJect - Get project date info
API Url
Used for loading the project date info.
http://localhost:16010/ProMarkREST/rest/ProJect/employees/{emp_id}/attendances
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| emp_id | String | Employee Id |
Query parameters
| Field | Type | Description |
|---|---|---|
fieldsoptional | String | Return the fields define in the list. Some mandatory fields will always be returned. |
| from | Date | From Date |
| to | Date | To Date |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| attendances | Object[] | Collection of employee registration dates. |
absencesoptional | Object[] | Collection of employee absences on the registration date. |
| backColor | String | RGB background colour of absence. |
| description | String | Description of absence. |
| foreColor | String | RGB foreground colour of absence. |
| shortDescr | String | Short description of absence. |
clockInoptional | Datetime | First clock-in time on this date. |
clockOutoptional | Datetime | Last clock-out time on this date. |
| date | Date | Employee registration date. |
fullDayRegisteredoptional | Boolean | true = Day is fully covered by project registrations. For free days or future days this will be undefined. |
| hasExpense | Boolean | true = There is at least 1 travel/expense registration on this day. |
| hasMileage | Boolean | true = There is at least 1 mileage registration on this day. |
| hasSupplement | Boolean | true = There is at least 1 number supplement registration on this day. |
| locked | Boolean | Is the date locked for registration? |
| projectTime | Number | Project time to register on this date in seconds. |
| registeredTime | Number | Total project time registerd on this date in seconds. |
| signedOff | Boolean | true = Day is signed-off. |
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": {"attendances": [{"date": "2016-05-02","locked": true,"clockIn": "2016-05-02T07:00:00.000","clockOut": "2016-05-02T15:00:00.000","projectTime": 27000,"signedOff": false,"registeredTime": 15000,"fullDayRegistered": false,"hasMileage": true,"hasExpense": true,"hasSupplement": false},{"date": "2016-05-03","locked": true,"clockIn": null,"clockOut": null,"projectTime": 27000,"signedOff": false,"registeredTime": 27500,"fullDayRegistered": true,"hasMileage": false,"hasExpense": false,"hasSupplement": true,"absences": [{"shortDescr": "SICK","description": "Sick","foreColor": "FFFF00","backColor": "00FF00"}]}]},"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. |