From 973e1ce40ffc54d2773c583acd394d1c9f80e026 Mon Sep 17 00:00:00 2001 From: charitha Date: Fri, 13 May 2016 13:52:35 +0530 Subject: [PATCH] Fix issues in group api --- .../org/wso2/carbon/device/mgt/jaxrs/api/Group.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 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 cc8ce89039..3f50b33596 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 @@ -35,10 +35,8 @@ import javax.ws.rs.QueryParam; import javax.ws.rs.core.Response; import java.util.List; -/** - * - */ -@Api(value = "Group") +@Path("/groups") +@Api(value = "Group", description = "Group related operations such as get all the available groups, etc.") @SuppressWarnings("NonJaxWsWebServices") public interface Group { @@ -59,7 +57,7 @@ public interface Group { @GET @Produces("application/json") - Response getGroups(@QueryParam("start") int startIndex, @PathParam("length") int length); + Response getGroups(@QueryParam("start") int startIndex, @QueryParam("length") int length); @Path("/all") @GET @@ -119,8 +117,7 @@ public interface Group { @PUT @Produces("application/json") Response addSharing(@QueryParam("shareUser") String shareUser, @PathParam("groupName") String groupName, - @PathParam("owner") String owner, @PathParam("roleName") String roleName, - @FormParam("permissions") String[] permissions); + @PathParam("owner") String owner, @PathParam("roleName") String roleName, String[] permissions); @DELETE @Path("/owner/{owner}/name/{groupName}/share/roles/{roleName}/permissions")