September 2018
Intermediate to advanced
412 pages
11h 12m
English
Sorting is essentially a request for a sorted list of items, for example, a list of devices sorted by name. By default, it is sorted in ascending order by the field name given but, if prefixed by - it is sorted in descending order. This can be seen in the following example:
HTTP GET--> /iiot/devices?sort=name
Sorted HTTP response is given as follows:
{ "IIoTEcoSystem": "gets a list of IIoT Devices", "Version": "1.0", "CompanyName": "IIoTPlatform", "Devices": [ { "deviceId": "11", "name": "device-A", "assetType": "liquifier", "active": "yes" }, { "deviceId": "10", "name": "device-B", "assetType": "pump", "active": "yes" }, ]}