From 5a4e7c0300e4b6a7fb9c447961eb7844af0ac881 Mon Sep 17 00:00:00 2001 From: pramilaniroshan Date: Tue, 19 Dec 2023 06:54:04 +0530 Subject: [PATCH] Fix API modification issue --- .../jaxrs/service/impl/DeviceStatusFilterServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/DeviceStatusFilterServiceImpl.java b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/DeviceStatusFilterServiceImpl.java index 56da3a1132..7e5fd01437 100644 --- a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/DeviceStatusFilterServiceImpl.java +++ b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/DeviceStatusFilterServiceImpl.java @@ -40,7 +40,8 @@ public class DeviceStatusFilterServiceImpl implements DeviceStatusFilterService @Override @GET - public Response getDeviceStatusFilters(@QueryParam("deviceType") String deviceType) { + @Path("/{deviceType}") + public Response getDeviceStatusFilters(@PathParam("deviceType") String deviceType) { List result; int tenantId = CarbonContext.getThreadLocalCarbonContext().getTenantId(); try { @@ -76,7 +77,7 @@ public class DeviceStatusFilterServiceImpl implements DeviceStatusFilterService @Override @PUT - @Path("/is-enabled") + @Path("/toggle-device-status") public Response updateDeviceStatusCheck( @QueryParam("isEnabled") boolean isEnabled) {