General - Get project distribution
API Url
Used for loading project distribution account postings
GET
http://localhost:16010/ProMarkREST/rest/ProJect/project-distributions
Permissions: user
Query parameters
| Field | Type | Description |
|---|---|---|
activityIdoptional | String | Activity ID. |
filteroptional | String | Employee filter fields, values and conditions, in a json format. |
fromoptional | Date | Account posting from this Date |
pieceworkIdoptional | String | Piecework ID. |
projectIdoptional | String | Project ID. |
tooptional | Date | Account posting till this Date |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| projectDistributions | Object[] | Collection of project distributions. |
| description | String | Project distribution description. |
| empId | String | Employee id. |
| format | String | Account format. |
| id | String | Project distribution id. |
| unit | String | Accounts unit (1: hours, 2: days, 3: pieces). |
| value | Number | Project distribution value. |
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": {"projectDistributions": [{"id": "NORM","description": "Normal time","format": 101,"value": 36000.0,"unit": 1,"empId": "1251"},{"id": "OVERI","description": "Overtid I","format": 101,"value": 10800.0,"unit": 1,"empId": "1251"},{"id": "OVERII","description": "Overtid II","format": 101,"unit": 1,"empId": "1251"}]},"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. |