ProJect - Get project weeks

API Url

Used for loading the project weeks.

GET
http://localhost:16010/ProMarkREST/rest/ProJect/weeks

Permissions: user

Query parameters

FieldTypeDescription
empIdoptionalString

Employee ID.

numWeeksoptionalNumber

Number of Weeks back in time from last registration date.

splitByPerProfIdoptionalString

Week will be split by this period profile ID, if defined.

toDateDate

Last Registration Date.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    weeksObject[]

Collection of project weeks.

      endDateDate

End date of the week.

      lockedBoolean

True if week is locked for registration else false. False if employee id is not defined.

      signedOffBoolean

True if the week is marked as signed off else false. False if employee id is not defined.

      startDateDate

Start date of the week.

      statusNumber

Possible Values: 0: No registrations for approval, 1: Sign off missing, 2: Signed off, 3: Approved, 4: Rejected. If employee Id is not defined, then the value is 0.

      weekNoString

Week Number.

      yearNumber

Year.

  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": {
"weeks": [
{
"year": 2017,
"weekNo": "13",
"startDate": 2017-03-27,
"endDate": 2017-04-02,
"signedOf": false,
"locked":false,
"status": 0
}
]
},
"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.