|
|
@ -1627,7 +1627,7 @@ public interface DeviceManagementService {
|
|
|
|
@Valid OperationRequest operationRequest);
|
|
|
|
@Valid OperationRequest operationRequest);
|
|
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
@GET
|
|
|
|
@Path("/status/count/{type}/{status}")
|
|
|
|
@Path("/status/count/{tenantDomain}/{type}/{status}")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
httpMethod = "GET",
|
|
|
|
httpMethod = "GET",
|
|
|
@ -1653,16 +1653,16 @@ public interface DeviceManagementService {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "ETag",
|
|
|
|
name = "ETag",
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Last-Modified",
|
|
|
|
name = "Last-Modified",
|
|
|
|
description = "Date and time the resource was last modified.\n" +
|
|
|
|
description = "Date and time the resource was last modified.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 304,
|
|
|
|
code = 304,
|
|
|
|
message = "Not Modified. Empty body because the client already has the latest version" +
|
|
|
|
message = "Not Modified. Empty body because the client already has the latest version" +
|
|
|
|
" of the requested resource.\n"),
|
|
|
|
" of the requested resource.\n"),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 400,
|
|
|
|
code = 400,
|
|
|
|
message = "Bad Request. \n Invalid request or validation error.",
|
|
|
|
message = "Bad Request. \n Invalid request or validation error.",
|
|
|
@ -1674,10 +1674,17 @@ public interface DeviceManagementService {
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 500,
|
|
|
|
code = 500,
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
"Server error occurred while retrieving the device details.",
|
|
|
|
"Server error occurred while retrieving the device details.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response getDeviceCountByStatus(
|
|
|
|
Response getDeviceCountByStatus(
|
|
|
|
|
|
|
|
@ApiParam(
|
|
|
|
|
|
|
|
name = "tenantDomain",
|
|
|
|
|
|
|
|
value = "The tenant doamin.",
|
|
|
|
|
|
|
|
required = true)
|
|
|
|
|
|
|
|
@PathParam("tenantDomain")
|
|
|
|
|
|
|
|
@Size(max = 45)
|
|
|
|
|
|
|
|
String tenantDomain,
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "type",
|
|
|
|
name = "type",
|
|
|
|
value = "The device type name, such as ios, android, windows or fire-alarm.",
|
|
|
|
value = "The device type name, such as ios, android, windows or fire-alarm.",
|
|
|
@ -1695,7 +1702,7 @@ public interface DeviceManagementService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
@GET
|
|
|
|
@Path("/status/ids/{type}/{status}")
|
|
|
|
@Path("/status/ids/{tenantDomain}/{type}/{status}")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
httpMethod = "GET",
|
|
|
|
httpMethod = "GET",
|
|
|
@ -1722,16 +1729,16 @@ public interface DeviceManagementService {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "ETag",
|
|
|
|
name = "ETag",
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Last-Modified",
|
|
|
|
name = "Last-Modified",
|
|
|
|
description = "Date and time the resource was last modified.\n" +
|
|
|
|
description = "Date and time the resource was last modified.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 304,
|
|
|
|
code = 304,
|
|
|
|
message = "Not Modified. Empty body because the client already has the latest version" +
|
|
|
|
message = "Not Modified. Empty body because the client already has the latest version" +
|
|
|
|
" of the requested resource.\n"),
|
|
|
|
" of the requested resource.\n"),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 400,
|
|
|
|
code = 400,
|
|
|
|
message = "Bad Request. \n Invalid request or validation error.",
|
|
|
|
message = "Bad Request. \n Invalid request or validation error.",
|
|
|
@ -1743,10 +1750,17 @@ public interface DeviceManagementService {
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 500,
|
|
|
|
code = 500,
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
"Server error occurred while retrieving the device details.",
|
|
|
|
"Server error occurred while retrieving the device details.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response getDeviceIdentifiersByStatus(
|
|
|
|
Response getDeviceIdentifiersByStatus(
|
|
|
|
|
|
|
|
@ApiParam(
|
|
|
|
|
|
|
|
name = "tenantDomain",
|
|
|
|
|
|
|
|
value = "The tenant domain.",
|
|
|
|
|
|
|
|
required = true)
|
|
|
|
|
|
|
|
@PathParam("tenantDomain")
|
|
|
|
|
|
|
|
@Size(max = 45)
|
|
|
|
|
|
|
|
String tenantDomain,
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "type",
|
|
|
|
name = "type",
|
|
|
|
value = "The device type name, such as ios, android, windows or fire-alarm.",
|
|
|
|
value = "The device type name, such as ios, android, windows or fire-alarm.",
|
|
|
@ -1763,7 +1777,7 @@ public interface DeviceManagementService {
|
|
|
|
String status);
|
|
|
|
String status);
|
|
|
|
|
|
|
|
|
|
|
|
@PUT
|
|
|
|
@PUT
|
|
|
|
@Path("/status/update/{type}/{status}")
|
|
|
|
@Path("/status/update/{tenantDomain}/{type}/{status}")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
@ -1790,16 +1804,16 @@ public interface DeviceManagementService {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "ETag",
|
|
|
|
name = "ETag",
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Last-Modified",
|
|
|
|
name = "Last-Modified",
|
|
|
|
description = "Date and time the resource has been modified the last time.\n" +
|
|
|
|
description = "Date and time the resource has been modified the last time.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 304,
|
|
|
|
code = 304,
|
|
|
|
message = "Not Modified. Empty body because the client already has the latest " +
|
|
|
|
message = "Not Modified. Empty body because the client already has the latest " +
|
|
|
|
"version of the requested resource."),
|
|
|
|
"version of the requested resource."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 400,
|
|
|
|
code = 400,
|
|
|
|
message = "Bad Request. \n Invalid request or validation error.",
|
|
|
|
message = "Bad Request. \n Invalid request or validation error.",
|
|
|
@ -1811,13 +1825,16 @@ public interface DeviceManagementService {
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 500,
|
|
|
|
code = 500,
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
"Server error occurred while retrieving information requested device.",
|
|
|
|
"Server error occurred while retrieving information requested device.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response bulkUpdateDeviceStatus(@ApiParam(name = "type", value = "The device type, such as ios, android or windows.", required = true)
|
|
|
|
Response bulkUpdateDeviceStatus(
|
|
|
|
@PathParam("type") String type,
|
|
|
|
@ApiParam(name = "tenantDomain", value = "The tenant domain.", required = true)
|
|
|
|
@ApiParam(name = "status", value = "The device type, such as ios, android or windows.", required = true)
|
|
|
|
@PathParam("tenantDomain") String tenantDomain,
|
|
|
|
@PathParam("status") String status,
|
|
|
|
@ApiParam(name = "type", value = "The device type, such as ios, android or windows.", required = true)
|
|
|
|
@ApiParam(name = "deviceList", value = "The payload containing the new name of the device.", required = true)
|
|
|
|
@PathParam("type") String type,
|
|
|
|
@Valid List<String> deviceList);
|
|
|
|
@ApiParam(name = "status", value = "The device type, such as ios, android or windows.", required = true)
|
|
|
|
|
|
|
|
@PathParam("status") String status,
|
|
|
|
|
|
|
|
@ApiParam(name = "deviceList", value = "The payload containing the new name of the device.", required = true)
|
|
|
|
|
|
|
|
@Valid List<String> deviceList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|