ProJect - Get the activities of a project
API Url
Use it for returning the activities of a project.
GET
http://localhost:16010/ProMarkREST/rest/ProJect/projects/{id}/activities
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| id | String | The id of the project. |
Query parameters
| Field | Type | Description |
|---|---|---|
empIdoptional | String | The id of the employee. If not sent, the session employee will be used if any. |
userIdoptional | String | User ID. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| activities | Object[] | |
| activityId | String | The unique id of the activity. |
| description | String | The description of the activity. |
| endDate | Date | The end date of the activity. |
| mruOrder | Number | Most recently used sort number. |
| plannedTime | Number | The planned time of the activity expressed in seconds. |
| projectId | String | The unique id of the project. |
| sortNo | Number | Sort Number. |
| startDate | Date | The start date of the activity. |
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": {"activities": [{"projectId": "PR1","activityId": "ACT1","mruOrder": 4,"description": "Work on the primary activity","startDate": "2018-08-07","endDate": "2018-08-10","plannedTime": 7200,"sortNo": 4}]},"errorCode": 0,"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |