From 7aab14c07d66c49ef66e51fba02132c2a1bfce3d Mon Sep 17 00:00:00 2001 From: geethkokila Date: Thu, 15 Mar 2018 16:50:04 +0530 Subject: [PATCH] Fix the path parameter --- .../service/impl/admin/UserManagementAdminServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/admin/UserManagementAdminServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/admin/UserManagementAdminServiceImpl.java index d695619b0b0..f5dbb3d3b6d 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/admin/UserManagementAdminServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/admin/UserManagementAdminServiceImpl.java @@ -54,6 +54,8 @@ public class UserManagementAdminServiceImpl implements UserManagementAdminServic return CredentialManagementResponseBuilder.buildResetPasswordResponse(user, credentials); } + @DELETE + @Path("/{username}/devices") @Override public Response deleteDeviceOfUser(@PathParam("username") String username) { try { @@ -66,6 +68,8 @@ public class UserManagementAdminServiceImpl implements UserManagementAdminServic } } + @DELETE + @Path("/type/{device-type}/id/{device-id}") @Override public Response deleteDevice(@PathParam("device-type") @Size(max = 45) String deviceType, @PathParam("device-id") @Size(max = 45) String deviceId) {