Entities - Get entity data

API Url

Get data for a given entity. If two entities are requested, they must be in a parent-child relationship, {parentId} being the parent.

GET
http://localhost:16010/ProMarkREST/web/Entity/data/{parent}/{parentId}/{child}/{childId}

Permissions: user

Request headers

FieldTypeDescription
AcceptString

Supported request types.

Allowed values:"application/json""text/csv"
Accept-LanguageoptionalString

=en-GB Language use for localization.

X-ClientoptionalString

=Client type.

Allowed values:"Portal""Mobile""Admin"
X-RoleoptionalNumber

ProMark role (1: Employee, 2: User).

Allowed values:{12}
X-WebPart-IdoptionalNumber

Unique web-part identifier.

Path parameters

FieldTypeDescription
childoptionalString

Name of the child entity.

childIdoptionalString

ID of the child entity.

parentString

Name of the entity.

parentIdoptionalString

ID of the entity.

Query parameters

FieldTypeDescription
delimiteroptionalBoolean

Field delimiter character used when exporting data to CSV. Default is comma ",".

fieldsoptionalNumber

Query expression used to select what fields should be returned. Example: fields=id,description.

filteroptionalString

Query expression used for filtering the records. Example: filter=id eq 'A' or description begins 'A'.

includeInactiveoptionalBoolean

FALSE = Return only the active records. TRUE = Return all records including the inactive ones. Default is FALSE. The property is ignored if a 'filter' containing the 'inactive' field exists.

linksoptionalBoolean

TRUE = include the related navigation links of the selected entity record.

skipoptionalNumber

How many records to skip.

sortByoptionalString

Query expression used to sort the resulted records. Example: sortBy=id,description desc.

takeoptionalNumber

How many records to load.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    entityObject[]

Object containing a list of entities, where 'entity' should be replaced with the proper data entity.

  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": {
"entity": [
...
]
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.