ProJect - Get project list

API Url

Used for loading projects.

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

Permissions: user

Query parameters

FieldTypeDescription
deptIdoptionalString

Department ID. Use for showing only projects having activities in this department.

empIdoptionalString

Get projects for this employee ID. If not sent, it's the current employee.

expandoptionalString

Expand schema according to URI.

Default value: schema
fieldsoptionalString

List of fields to return, if empty returns all fields.

filteroptionalString

filter fields and its values and conditions.

noSchemaoptionalBoolean

true = The schema property/object will not be returned. Default is false.

onlyUserRegoptionalBoolean

Only projects assign to the user in the period 'regFrom' - 'regTo' are included.

queryoptionalNumber

Unique identifier of the server query. Initially, it will be 0, then it will be the query id sent by the server. Used in server-side paging.

regFromoptionalDate

Registration From date. Used for getting only projects having registrations in the period 'regFrom' - 'regTo'.

regTooptionalDate

Registration To date. Used for getting only projects having registrations in the period 'regFrom' - 'regTo'.

setRecentOrderoptionalBoolean

true = Field 'mruOrder' will be assigned with the most recently used items (1-15). All other items will have 'mruOrder' = 100.

skipoptionalNumber

Skip a certain number of records. Used in server-side paging.

takeoptionalNumber

Limit the number of records to return. Used in server-side paging.

userIdoptionalString

User ID. If supplied, then department restrictions of the user will be applied.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

      titleString

Field title/header.

      typeString

The field variable type.

Allowed values:"string""number""date""boolean"
    projectsObject[]

Collection of projects.

      createByString

Project created by.

      createdDateTime

Project created datetime.

      descriptionString

project description.

      divisionIdString

Division Id.

      endDate

Planned end time.

      idString

project ID.

      lastChangedDateTime

Last changed datetime.

      lastChangedByString

Last changed by.

      mruOrderNumber

Sort by this field. Most recently used projects will have value 1-15, all other projects will have value 100.

      plannedTimeNumber

Planned project time.

      ref1String

project reference1.

      ref2String

project reference2.

      ref3String

project reference3.

      startDate

Planned start date

    schemaString

The meta schema URI. Not sent when 'expand=schema'.

      anyObject

Field name, depending on schema type (*: any). It's the object containging settings for this field.

      fieldsObject

Object containing the field objects.

      idString

The field name to use as internal id (value field).

      objectNameString

The json object name containing the data.

      textString

The description to show (used for drop-down, combo-box etc.).

  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": {
"projects": [
{
"id": "FIXED2",
"description": "Fixed project",
"created": "2017-01-20T15:36:29.000",
"createdBy": "SBA",
"lastChanged": "2017-01-20T15:36:29.000",
"lastChangedBy": "SBA",
"mruOrder": 100
}
],
"schema": "/ProJect/schemas/project"
},
"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.