|
|
@ -108,7 +108,7 @@ public interface DeviceManagementService {
|
|
|
|
@ResponseHeader(name = "Location", description = "URL of the device enrolled")}),
|
|
|
|
@ResponseHeader(name = "Location", description = "URL of the device enrolled")}),
|
|
|
|
@ApiResponse(code = 400, message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
@ApiResponse(code = 400, message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
@ApiResponse(code = 500, message = "Internal Server Error. \n " +
|
|
|
|
@ApiResponse(code = 500, message = "Internal Server Error. \n " +
|
|
|
|
"Server error occurred while enrolling the device."),
|
|
|
|
"Server error occurred while enrolling the device.")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response enrollDevice(@ApiParam(name = "device", value = "Device Information to be enroll") Device device);
|
|
|
|
Response enrollDevice(@ApiParam(name = "device", value = "Device Information to be enroll") Device device);
|
|
|
|
|
|
|
|
|
|
|
@ -144,17 +144,25 @@ public interface DeviceManagementService {
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponse(code = 200, message = "OK. \n Device enrollment has been updated successfully",
|
|
|
|
@ApiResponse(code = 200, message = "OK. \n Device enrollment has been updated successfully",
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(name = "Location", description = "The URL of the updated device."),
|
|
|
|
@ResponseHeader(name = "Content-Location", description = "The URL of the updated device."),
|
|
|
|
@ResponseHeader(name = "Content-Type", description = "The content type of the body"),
|
|
|
|
@ResponseHeader(name = "Content-Type", description = "The content type of the body"),
|
|
|
|
@ResponseHeader(name = "ETag", description = "Entity Tag of the response resource.\n" +
|
|
|
|
@ResponseHeader(name = "ETag", description = "Entity Tag of the response resource.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
@ResponseHeader(name = "Last-Modified",
|
|
|
|
@ResponseHeader(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(code = 204, message = "No Content. \n Enrollment of the device has not been updated"),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(code = 400, message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
code = 204,
|
|
|
|
@ApiResponse(code = 404, message = "Not Found. \n Resource to be deleted does not exist."),
|
|
|
|
message = "No Content. \n Enrollment of the device has not been updated"),
|
|
|
|
@ApiResponse(code = 500, message = "Internal Server Error. \n " +
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 400,
|
|
|
|
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 404,
|
|
|
|
|
|
|
|
message = "Not Found. \n Resource to be deleted does not exist."),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 500,
|
|
|
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
"Server error occurred while modifying the current enrollment of the device.")
|
|
|
|
"Server error occurred while modifying the current enrollment of the device.")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response modifyEnrollment(@ApiParam(name = "id", value = "Device Identifier") @PathParam("id") String id,
|
|
|
|
Response modifyEnrollment(@ApiParam(name = "id", value = "Device Identifier") @PathParam("id") String id,
|
|
|
|