- Querying Catalog
- Search / Filtering
findDevice(path, operation, value)
findDevices(path, operation, value, page, perPage)
findResource(path, operation, value)
findResources(path, operation, value, page, perPage)
A Java-based implementation is available and can be used by applications as follows:
add following maven artifact into your project:
In case, Maven is not a preferred build environment then resource-catalog-client jar can be downloaded from LinkSmart® repository, to configure into build path of the application.
Set URL of the catalog service by calling following static method ofclass:
use DeviceBuilder utility class to create Registration object to add into resource catalog:
- create registration object from a json file
Registration registration = DeviceBuilder.createRegistration(String jsonFileName)
- create a device registration for device connectorID & device name with one resource of protocol type REST
Registration registration = DeviceBuilder.createRegistration(String deviceConnectorID, String deviceName, String resourceName, String URL)
Alternatively, the Registration instance can be instantiated and populated directly for required configuration and data values.