From e01b62086f2031b6a03f08ff10ba89102e0b57d6 Mon Sep 17 00:00:00 2001 From: Charitha Goonetilleke Date: Wed, 4 May 2016 01:47:50 +0530 Subject: [PATCH] Fix parameter mismatch --- .../java/org/wso2/carbon/device/mgt/jaxrs/api/Group.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/api/Group.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/api/Group.java index cc0aa56dd9..a4dffc4fee 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/api/Group.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/api/Group.java @@ -114,10 +114,10 @@ public class Group { @GET @Produces("application/json") - public Response getGroups(@QueryParam("start") int startIndex, @PathParam("rowCount") int rowCount) { + public Response getGroups(@QueryParam("start") int startIndex, @PathParam("length") int length) { try { PaginationResult paginationResult = DeviceMgtAPIUtils.getGroupManagementProviderService() - .getGroups(startIndex, rowCount); + .getGroups(startIndex, length); if (paginationResult.getRecordsTotal() > 0) { return Response.status(Response.Status.OK).entity(paginationResult).build(); } else { @@ -153,10 +153,10 @@ public class Group { @GET @Produces("application/json") public Response getGroups(@PathParam("user") String userName, @QueryParam("start") int startIndex, - @QueryParam("rowCount") int rowCount) { + @QueryParam("length") int length) { try { PaginationResult paginationResult = DeviceMgtAPIUtils.getGroupManagementProviderService() - .getGroups(userName, startIndex, rowCount); + .getGroups(userName, startIndex, length); if (paginationResult.getRecordsTotal() > 0) { return Response.status(Response.Status.OK).entity(paginationResult).build(); } else {