XML Schema: edc.xsd

DevicesResult is a container for a list of Devices returned by a list device call. It contains the list of requested Devices and a flag signaling whether the limit for the maximum number of returned entities has been reached. If limitExceeded is set, the client is requested to paginate through the result by moving the offset forward and issue a new request to get more data.

Example to get all devices:

String apiPath = "devices.xml";
WebResource apisWeb = client.resource(API_URL).path(apiPath);

DevicesResult result;
int offset = 0;
do {
// if the "limit" queryParam is not initialized, limit default value = 50
// if the "offset" queryParam is not initialized, offset default value = 0
apisWeb = apisWeb.queryParam("limit", "" + limit);
if (offset > 0)
apisWeb = apisWeb.queryParam("offset", "" + offset);
result = apisWeb.get(DevicesResult.class);
offset += limit;
} while (result.isLimitExceeded()):



name (type) min/max
limitExceeded (boolean) 1/1
device (device) 0/unbounded


property type description
limitExceeded limitExceeded (boolean)
device array of device (device)