September 2018
Intermediate to advanced
412 pages
11h 12m
English
Filtering is, essentially, requesting only a certain set of fields. You can use either includes or excludes to request only the list with the attributes of interest. includes only includes the requested attributes whereas excludes removes the attributes passed. An example for includes is given in the following code:
HTTP GET--> /iiot/devices?includes=name
Sorted HTTP response is given as follows:
{ "IIoTEcoSystem": "gets a list of IIoT Devices", "Version": "1.0", "CompanyName": "IIoTPlatform", "Devices": [ { "name": "device-A" }, { "name": "device-B", }, ]}