fixed swagger message issue

merge-requests/7/head
hasuniea 9 years ago
parent ed0da9e1d0
commit 20343d9349

@ -112,7 +112,7 @@ public interface DeviceNotification {
value = "Sending a Device Notification", value = "Sending a Device Notification",
notes = "Notify users on device operation failures and other information using this REST API") notes = "Notify users on device operation failures and other information using this REST API")
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 201, message = "NNotification has added successfully"), @ApiResponse(code = 201, message = "Notification has been added successfully"),
@ApiResponse(code = 500, message = "Error occurred while updating notification status") @ApiResponse(code = 500, message = "Error occurred while updating notification status")
}) })
@Permission(scope = "device-notification-modify", @Permission(scope = "device-notification-modify",

@ -97,7 +97,7 @@ public class DeviceNotificationImpl implements DeviceNotification{
ResponsePayload responseMsg = new ResponsePayload(); ResponsePayload responseMsg = new ResponsePayload();
try { try {
DeviceMgtAPIUtils.getNotificationManagementService().addNotification(notification); DeviceMgtAPIUtils.getNotificationManagementService().addNotification(notification);
responseMsg.setMessageFromServer("Notification has added successfully."); responseMsg.setMessageFromServer("Notification has been added successfully.");
responseMsg.setStatusCode(HttpStatus.SC_CREATED); responseMsg.setStatusCode(HttpStatus.SC_CREATED);
return Response.status(Response.Status.CREATED).entity(responseMsg).build(); return Response.status(Response.Status.CREATED).entity(responseMsg).build();
} catch (NotificationManagementException e) { } catch (NotificationManagementException e) {

Loading…
Cancel
Save