September 2018
Intermediate to advanced
412 pages
11h 12m
English
Searching essentially enables the API user to search for certain types of items in a list. In the following example, the search for devices with certain asset types will only return those devices. We can use regular query parameters to add more search constraints:
HTTP GET--> /iiot/devices?assetType=pump
HTTP response is given as follows:
{ "IIoTEcoSystem": "gets a list of IIoT Devices", "Version": "1.0", "CompanyName": "IIoTPlatform", "Devices": [ { "deviceId": "10", "name": "device-B", "assetType": "pump", "active": "yes" } ]}
Let's have a look at one more constraint:
HTTP GET--> /iiot/devices?assetType=pump
HTTP response is given as follows:
{ "IIoTEcoSystem": "gets a list of IIoT Devices", "Version": "1.0", ...