|
|
@ -204,10 +204,6 @@ public interface GroupManagementService {
|
|
|
|
code = 304,
|
|
|
|
code = 304,
|
|
|
|
message = "Not Modified. \n Empty body because the client has already the latest version of " +
|
|
|
|
message = "Not Modified. \n Empty body because the client has already the latest version of " +
|
|
|
|
"the requested resource."),
|
|
|
|
"the requested resource."),
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 404,
|
|
|
|
|
|
|
|
message = "No groups found.",
|
|
|
|
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 406,
|
|
|
|
code = 406,
|
|
|
|
message = "Not Acceptable.\n The requested media type is not supported."),
|
|
|
|
message = "Not Acceptable.\n The requested media type is not supported."),
|
|
|
@ -219,19 +215,25 @@ public interface GroupManagementService {
|
|
|
|
Response getGroups(@ApiParam(
|
|
|
|
Response getGroups(@ApiParam(
|
|
|
|
name = "name",
|
|
|
|
name = "name",
|
|
|
|
value = "Name of the group.")
|
|
|
|
value = "Name of the group.")
|
|
|
|
@QueryParam("name") String name,
|
|
|
|
@QueryParam("name")
|
|
|
|
|
|
|
|
String name,
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "owner",
|
|
|
|
name = "owner",
|
|
|
|
value = "Owner of the group.")
|
|
|
|
value = "Owner of the group.")
|
|
|
|
@QueryParam("owner") String owner,
|
|
|
|
@QueryParam("owner")
|
|
|
|
|
|
|
|
String owner,
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "offset",
|
|
|
|
name = "offset",
|
|
|
|
value = "Starting point within the complete list of items qualified.")
|
|
|
|
value = "The starting pagination index for the complete list of qualified items.",
|
|
|
|
@QueryParam("offset") int offset,
|
|
|
|
defaultValue = "0")
|
|
|
|
|
|
|
|
@QueryParam("offset")
|
|
|
|
|
|
|
|
int offset,
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "limit",
|
|
|
|
name = "limit",
|
|
|
|
value = "Maximum size of resource array to return.")
|
|
|
|
value = "Provide how many device details you require from the starting pagination index/offset.",
|
|
|
|
@QueryParam("limit") int limit);
|
|
|
|
defaultValue = "5")
|
|
|
|
|
|
|
|
@QueryParam("limit")
|
|
|
|
|
|
|
|
int limit);
|
|
|
|
|
|
|
|
|
|
|
|
@Path("/count")
|
|
|
|
@Path("/count")
|
|
|
|
@GET
|
|
|
|
@GET
|
|
|
@ -268,10 +270,6 @@ public interface GroupManagementService {
|
|
|
|
code = 304,
|
|
|
|
code = 304,
|
|
|
|
message = "Not Modified. \n Empty body because the client has already the latest version of " +
|
|
|
|
message = "Not Modified. \n Empty body because the client has already the latest version of " +
|
|
|
|
"the requested resource."),
|
|
|
|
"the requested resource."),
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 404,
|
|
|
|
|
|
|
|
message = "No groups found.",
|
|
|
|
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 406,
|
|
|
|
code = 406,
|
|
|
|
message = "Not Acceptable.\n The requested media type is not supported."),
|
|
|
|
message = "Not Acceptable.\n The requested media type is not supported."),
|
|
|
@ -383,7 +381,7 @@ public interface GroupManagementService {
|
|
|
|
"the requested resource."),
|
|
|
|
"the requested resource."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 404,
|
|
|
|
code = 404,
|
|
|
|
message = "No groups found.",
|
|
|
|
message = "Group found.",
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 406,
|
|
|
|
code = 406,
|
|
|
@ -435,7 +433,7 @@ public interface GroupManagementService {
|
|
|
|
"the requested resource."),
|
|
|
|
"the requested resource."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 404,
|
|
|
|
code = 404,
|
|
|
|
message = "No groups found.",
|
|
|
|
message = "Group not found.",
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 406,
|
|
|
|
code = 406,
|
|
|
@ -492,7 +490,7 @@ public interface GroupManagementService {
|
|
|
|
"the requested resource."),
|
|
|
|
"the requested resource."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 404,
|
|
|
|
code = 404,
|
|
|
|
message = "No groups found.",
|
|
|
|
message = "Group not found.",
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 406,
|
|
|
|
code = 406,
|
|
|
@ -544,7 +542,7 @@ public interface GroupManagementService {
|
|
|
|
"the requested resource."),
|
|
|
|
"the requested resource."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 404,
|
|
|
|
code = 404,
|
|
|
|
message = "No groups found.",
|
|
|
|
message = "Group not found.",
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 406,
|
|
|
|
code = 406,
|
|
|
@ -601,7 +599,7 @@ public interface GroupManagementService {
|
|
|
|
"the requested resource."),
|
|
|
|
"the requested resource."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 404,
|
|
|
|
code = 404,
|
|
|
|
message = "No groups found.",
|
|
|
|
message = "Group not found.",
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 406,
|
|
|
|
code = 406,
|
|
|
@ -653,7 +651,7 @@ public interface GroupManagementService {
|
|
|
|
"the requested resource."),
|
|
|
|
"the requested resource."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 404,
|
|
|
|
code = 404,
|
|
|
|
message = "No groups found.",
|
|
|
|
message = "Group not found.",
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 406,
|
|
|
|
code = 406,
|
|
|
@ -667,15 +665,20 @@ public interface GroupManagementService {
|
|
|
|
name = "groupId",
|
|
|
|
name = "groupId",
|
|
|
|
value = "ID of the group.",
|
|
|
|
value = "ID of the group.",
|
|
|
|
required = true)
|
|
|
|
required = true)
|
|
|
|
@PathParam("groupId") int groupId,
|
|
|
|
@PathParam("groupId")
|
|
|
|
|
|
|
|
int groupId,
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "offset",
|
|
|
|
name = "offset",
|
|
|
|
value = "Starting point within the complete list of items qualified.")
|
|
|
|
value = "The starting pagination index for the complete list of qualified items.",
|
|
|
|
@QueryParam("offset") int offset,
|
|
|
|
defaultValue = "0")
|
|
|
|
|
|
|
|
@QueryParam("offset")
|
|
|
|
|
|
|
|
int offset,
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "limit",
|
|
|
|
name = "limit",
|
|
|
|
value = "Maximum size of resource array to return.")
|
|
|
|
value = "Provide how many device details you require from the starting pagination index/offset.",
|
|
|
|
@QueryParam("limit") int limit);
|
|
|
|
defaultValue = "5")
|
|
|
|
|
|
|
|
@QueryParam("limit")
|
|
|
|
|
|
|
|
int limit);
|
|
|
|
|
|
|
|
|
|
|
|
@Path("/id/{groupId}/devices/count")
|
|
|
|
@Path("/id/{groupId}/devices/count")
|
|
|
|
@GET
|
|
|
|
@GET
|
|
|
@ -926,10 +929,6 @@ public interface GroupManagementService {
|
|
|
|
code = 304,
|
|
|
|
code = 304,
|
|
|
|
message = "Not Modified. \n Empty body because the client has already the latest version of " +
|
|
|
|
message = "Not Modified. \n Empty body because the client has already the latest version of " +
|
|
|
|
"the requested resource."),
|
|
|
|
"the requested resource."),
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 404,
|
|
|
|
|
|
|
|
message = "No groups found.",
|
|
|
|
|
|
|
|
response = ErrorResponse.class),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 406,
|
|
|
|
code = 406,
|
|
|
|
message = "Not Acceptable.\n The requested media type is not supported."),
|
|
|
|
message = "Not Acceptable.\n The requested media type is not supported."),
|
|
|
@ -941,11 +940,15 @@ public interface GroupManagementService {
|
|
|
|
Response getGroups(
|
|
|
|
Response getGroups(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "deviceId",
|
|
|
|
name = "deviceId",
|
|
|
|
value = "Id of the device.")
|
|
|
|
value = "Id of the device.",
|
|
|
|
@QueryParam("deviceId") String deviceId,
|
|
|
|
required = true)
|
|
|
|
|
|
|
|
@QueryParam("deviceId")
|
|
|
|
|
|
|
|
String deviceId,
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "deviceType",
|
|
|
|
name = "deviceType",
|
|
|
|
value = "Type of the device.")
|
|
|
|
value = "Type of the device.",
|
|
|
|
@QueryParam("deviceType") String deviceType);
|
|
|
|
required = true)
|
|
|
|
|
|
|
|
@QueryParam("deviceType")
|
|
|
|
|
|
|
|
String deviceType);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|