|
|
@ -117,9 +117,9 @@ if (uriMatcher.match("/{context}/api/device/sketch/download/{downloadId}")) {
|
|
|
|
exit();//stop execution
|
|
|
|
exit();//stop execution
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//URL: https://localhost:9443/devicecloud/manager/devices/username/{username}
|
|
|
|
//URL: https://localhost:9443/devicecloud/device_manager/device/user/{username}/all
|
|
|
|
deviceCloudService = carbonHttpsServletTransport + "/common/device_manager";
|
|
|
|
deviceCloudService = carbonHttpsServletTransport + "/common/device_manager";
|
|
|
|
listAllDevicesEndPoint = deviceCloudService + "/devices/username/" + user.username;
|
|
|
|
listAllDevicesEndPoint = deviceCloudService + "/device/user/" + user.username + "/all";
|
|
|
|
result = get(listAllDevicesEndPoint, {}, "json");
|
|
|
|
result = get(listAllDevicesEndPoint, {}, "json");
|
|
|
|
var ownDevices = result.data;
|
|
|
|
var ownDevices = result.data;
|
|
|
|
|
|
|
|
|
|
|
@ -160,9 +160,9 @@ if (uriMatcher.match("/{context}/api/device/sketch/download/{downloadId}")) {
|
|
|
|
exit();//stop execution
|
|
|
|
exit();//stop execution
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//URL: https://localhost:9443/devicecloud/manager/devices/username/{username}
|
|
|
|
//URL: https://localhost:9443/devicecloud/device_manager/device/user/{username}/all/count
|
|
|
|
deviceCloudService = carbonHttpsServletTransport + "/common/device_manager";
|
|
|
|
deviceCloudService = carbonHttpsServletTransport + "/common/device_manager";
|
|
|
|
listAllDevicesEndPoint = deviceCloudService + "/devices/username/" + user.username;
|
|
|
|
listAllDevicesEndPoint = deviceCloudService + "/device/user/" + user.username + "/all/count";
|
|
|
|
result = get(listAllDevicesEndPoint, {}, "json");
|
|
|
|
result = get(listAllDevicesEndPoint, {}, "json");
|
|
|
|
var ownDevices = result.data;
|
|
|
|
var ownDevices = result.data;
|
|
|
|
|
|
|
|
|
|
|
|