From 0125310440202648a387f50dc0c7540b244b01e3 Mon Sep 17 00:00:00 2001 From: prabathabey Date: Tue, 5 Jul 2016 15:39:50 +0530 Subject: [PATCH] Prepending the url template configured for updating notifications with a '/' --- .../mgt/jaxrs/service/api/NotificationManagementService.java | 2 +- .../jaxrs/service/impl/NotificationManagementServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/api/NotificationManagementService.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/api/NotificationManagementService.java index 47ab30198c9..5e4d06f10c1 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/api/NotificationManagementService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/api/NotificationManagementService.java @@ -125,7 +125,7 @@ public interface NotificationManagementService { int limit); @PUT - @Path("{id}/mark-checked") + @Path("/{id}/mark-checked") @ApiOperation( produces = MediaType.APPLICATION_JSON, httpMethod = "PUT", diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/NotificationManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/NotificationManagementServiceImpl.java index ec01db35cd2..c504da33d1b 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/NotificationManagementServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/NotificationManagementServiceImpl.java @@ -76,7 +76,7 @@ public class NotificationManagementServiceImpl implements NotificationManagement } @PUT - @Path("{id}/mark-checked") + @Path("/{id}/mark-checked") public Response updateNotificationStatus( @PathParam("id") int id) { String msg;