ProJect - Get project schema

API Url

Used for loading schema model data related to project resources.

GET
http://localhost:16010/ProMarkREST/rest/ProJect/schemas/{type}

Permissions: user

Path parameters

FieldTypeDescription
typeString

The schema type.

Allowed values:"order"

Query parameters

FieldTypeDescription
fieldsoptionalString

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

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    anyObject

Field name, depending on schema type (any = can be anything). It's the object containging settings for this field.

      titleString

Field title/header.

      typeString

The field variable type.

Allowed values:"string""number""date""boolean""time"
    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": {
"objectName": "orders",
"id": "id",
"text": "description",
"fields": {
"id": {
"type": "string",
"title": "ID"
},
"description": {
"type": "string",
"title": "Description"
},
"orderNo": {
"type": "string",
"title": "Order Number"
},
"lotId": {
"type": "string",
"title": "Lot ID"
},
"itemId": {
"type": "string",
"title": "Item ID"
},
"itemDescription": {
"type": "string",
"title": "Item Description"
},
"responsible": {
"type": "string",
"title": "Responsible"
},
"plannedStart": {
"type": "date",
"title": "From"
},
"plannedEnd": {
"type": "date",
"title": "To"
},
"ref1": {
"type": "string",
"title": "Ref1"
},
"ref2": {
"type": "string",
"title": "Ref2"
},
"ref3": {
"type": "string",
"title": "Ref3"
},
"orderTypeId": {
"type": "string",
"title": "Order type ID"
},
"orderTypeDescription": {
"type": "string",
"title": "Order type description"
}
}
},
"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.