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

FieldTypeDescription
idString

The id of the project.

Query parameters

FieldTypeDescription
empIdoptionalString

The id of the employee. If not sent, the session employee will be used if any.

userIdoptionalString

User ID.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

    activitiesObject[]
      activityIdString

The unique id of the activity.

      descriptionString

The description of the activity.

      endDateDate

The end date of the activity.

      mruOrderNumber

Most recently used sort number.

      plannedTimeNumber

The planned time of the activity expressed in seconds.

      projectIdString

The unique id of the project.

      sortNoNumber

Sort Number.

      startDateDate

The start date of the activity.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"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

FieldTypeDescription
responseObject

Main object containing the response data.

  errorCodeNumber

Error code.

  errorMessageString

Error description.