Analysis - Get project registrations

API Url

Used for loading project registrations according to a filter setup, where it's also possible to group on specific fields.

GET
http://localhost:16010/ProMarkREST/rest/Analysis/project-registrations

Permissions: user

Query parameters

FieldTypeDescription
activityIdoptionalString

Can contain 1 or more activity IDs (comma delimiter) to filter registration on.

empIdoptionalNumber

Can contain 1 or more employee IDs (comma delimiter) to filter registrations on.

fieldsoptionalString

List of fields to be returned in the collection. Used for limiting amount of data.

filteroptionalString

Filter fields, values and conditions, in a json format.

fromoptionalDate

Start date for loading registrations. Default is TODAY.

groupByoptionalString

Group registrations by empId,projectId,activityId,timeTypeId.

projectIdoptionalString

Can contain 1 or more project IDs (comma delimiter) to filter registration on.

timeTypeIdoptionalString

Can contain 1 or more timeType IDs (comma delimiter) to filter registration on.

tooptionalDate

End date for loading registrations. Default is 'from'.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    projectRegistrationsObject

Collection of project registrations. All registration entries from 'values' have the same parent coordinates, like employee, project, activity, time type, extra info.

      activityDescString

Activity description.

      activityIdString

Activity ID.

      attendanceDateString

Date of registration.

      avatarURIoptionalString

URI used for loading the employee avatar.

      budgetoptionalNumber

Registration budget.

      dimensionDesc1optionalString

Dimension1 description.

      dimensionDesc2optionalString

Dimension2 description.

      dimensionDesc3optionalString

Dimension3 description.

      dimensionDesc4optionalString

Dimension4 description.

      dimensionDesc5optionalString

Dimension5 description.

      dimensionId1optionalString

Dimension1 id.

      dimensionId2optionalString

Dimension2 id.

      dimensionId3optionalString

Dimension3 id.

      dimensionId4optionalString

Dimension4 id.

      dimensionId5optionalString

Dimension5 id.

      empIdString

Employee ID.

      empNameString

Employee Name.

      empNoString

Employee No.

      initialsString

Employee initials.

      plannedTimeoptionalNumber

Activity planned time.

      projectDescString

Project description.

      projectIdString

Project ID.

      projectRef1String

Project Ref1.

      projectRef2String

Project Ref2.

      projectRef3String

Project Ref3.

      registeredTimeNumber

Registration time.

      sortEmpNoString

Sort employee No.

      timeTypeDescString

Time type description.

      timeTypeIdString

Time type ID.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example with filter=[{"type":4,"fields":[{"fieldId":"1","condition":"1","values":["4711"]}]}]:

HTTP/1.1 200 OK
{
"response": {
"data": {
"projectRegistrations": [
{
"empId": "605",
"empName": "andreea toma1",
"empNo": "AMT1",
"sortEmpNo": "!!!!!AMT1",
"initials": "AMT",
"projectId": "AARSLEFF",
"projectDesc": "Aarsleff project I",
"activityId": "ACT1",
"activityDesc": "Aarsleff activity 1",
"timeTypeId": "MASKTIMER",
"timeTypeDesc": "",
"regTime": 3600,
"budget": 144000,
"dimensionId1": "10301",
"dimensionDesc1": "Scania Tankvogn",
"dimensionId2": "23669",
"dimensionDesc2": "Renovering af kompressor motor"
},
{
"empId": "605",
"empName": "andreea toma1",
"empNo": "AMT1",
"sortEmpNo": "!!!!!AMT1",
"initials": "AMT",
"projectId": "AARSLEFF",
"projectDesc": "Aarsleff project I",
"activityId": "ACT1",
"activityDesc": "Aarsleff activity 1",
"timeTypeId": "MASKTIMER",
"timeTypeDesc": "",
"regTime": 10800,
"budget": 144000,
"dimensionId1": "10357",
"dimensionDesc1": "Jernreol ved port 17",
"dimensionId2": "23669",
"dimensionDesc2": "Renovering af kompressor motor"
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.