mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
changes to 'updateNotificationStatus' swagger annotations
This commit is contained in:
parent
951d68a92d
commit
2136ebbeee
@ -125,13 +125,38 @@ public interface NotificationManagementService {
|
|||||||
int limit);
|
int limit);
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("{id}/{status}")
|
@Path("{id}/mark-checked")
|
||||||
@ApiOperation(
|
@ApiOperation(
|
||||||
produces = MediaType.APPLICATION_JSON,
|
produces = MediaType.APPLICATION_JSON,
|
||||||
httpMethod = "PUT",
|
httpMethod = "PUT",
|
||||||
value = "",
|
value = "Updating the Device Notification Status",
|
||||||
notes = "",
|
notes = "When a user has read the the device notification the device notification status must "
|
||||||
|
+ "change from NEW to CHECKED. This API is used to update device notification status.",
|
||||||
tags = "Device Notification Management")
|
tags = "Device Notification Management")
|
||||||
|
@ApiResponses(
|
||||||
|
value = {
|
||||||
|
@ApiResponse(
|
||||||
|
code = 200,
|
||||||
|
message = "OK",
|
||||||
|
response = Notification.class),
|
||||||
|
@ApiResponse(
|
||||||
|
code = 200,
|
||||||
|
message = "Notification updated successfully. But the retrial of the updated "
|
||||||
|
+ "notification failed."),
|
||||||
|
@ApiResponse(
|
||||||
|
code = 500,
|
||||||
|
message = "Error occurred while updating notification status.")
|
||||||
|
}
|
||||||
|
)
|
||||||
|
@Permission(
|
||||||
|
scope = "",
|
||||||
|
permissions = { "" }
|
||||||
|
)
|
||||||
Response updateNotificationStatus(
|
Response updateNotificationStatus(
|
||||||
@PathParam("id") int id);
|
@ApiParam(
|
||||||
|
name = "id",
|
||||||
|
value = "Notification ID.",
|
||||||
|
required = true)
|
||||||
|
@PathParam("id")
|
||||||
|
int id);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user