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.
http://localhost:16010/ProMarkREST/web/Entity/data/{parent}/{parentId}/{child}/{childId}
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
| Accept | String | Supported request types. "application/json""text/csv" |
Accept-Languageoptional | String | =en-GB Language use for localization. |
X-Clientoptional | String | =Client type. "Portal""Mobile""Admin" |
X-Roleoptional | Number | ProMark role (1: Employee, 2: User). {12} |
X-WebPart-Idoptional | Number | Unique web-part identifier. |
Path parameters
| Field | Type | Description |
|---|---|---|
childoptional | String | Name of the child entity. |
childIdoptional | String | ID of the child entity. |
| parent | String | Name of the entity. |
parentIdoptional | String | ID of the entity. |
Query parameters
| Field | Type | Description |
|---|---|---|
delimiteroptional | Boolean | Field delimiter character used when exporting data to CSV. Default is comma ",". |
fieldsoptional | Number | Query expression used to select what fields should be returned. Example: fields=id,description. |
filteroptional | String | Query expression used for filtering the records. Example: filter=id eq 'A' or description begins 'A'. |
includeInactiveoptional | Boolean | 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. |
linksoptional | Boolean | TRUE = include the related navigation links of the selected entity record. |
skipoptional | Number | How many records to skip. |
sortByoptional | String | Query expression used to sort the resulted records. Example: sortBy=id,description desc. |
takeoptional | Number | How many records to load. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| entity | Object[] | Object containing a list of entities, where 'entity' should be replaced with the proper data entity. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"entity": [...]}}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |