Terminal - Get terminal controller jobs
API Url
Use it to return all terminal controller jobs
GET
http://localhost:16010/ProMarkRESTweb/Terminal/controllers
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
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. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| terminalControllers | Object[] | |
| lastUpdated | Number | Last updated time |
| lastUpdatedStr | String | Last updated string date |
| name | String | The name of the terminal controller job |
| status | Number | The status of the terminal. |
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": {"terminalControllers": [{"name": "Kaba Android","status": 1,"lastUpdated": 842952602,"lastUpdatedStr": "17/09/2020 09:30:02"}]}}}
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. |