Fix issues in group api

4.x.x
charitha 9 years ago
parent 0a838923cb
commit 973e1ce40f

@ -35,10 +35,8 @@ import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import java.util.List; import java.util.List;
/** @Path("/groups")
* @Api(value = "Group", description = "Group related operations such as get all the available groups, etc.")
*/
@Api(value = "Group")
@SuppressWarnings("NonJaxWsWebServices") @SuppressWarnings("NonJaxWsWebServices")
public interface Group { public interface Group {
@ -59,7 +57,7 @@ public interface Group {
@GET @GET
@Produces("application/json") @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") @Path("/all")
@GET @GET
@ -119,8 +117,7 @@ public interface Group {
@PUT @PUT
@Produces("application/json") @Produces("application/json")
Response addSharing(@QueryParam("shareUser") String shareUser, @PathParam("groupName") String groupName, Response addSharing(@QueryParam("shareUser") String shareUser, @PathParam("groupName") String groupName,
@PathParam("owner") String owner, @PathParam("roleName") String roleName, @PathParam("owner") String owner, @PathParam("roleName") String roleName, String[] permissions);
@FormParam("permissions") String[] permissions);
@DELETE @DELETE
@Path("/owner/{owner}/name/{groupName}/share/roles/{roleName}/permissions") @Path("/owner/{owner}/name/{groupName}/share/roles/{roleName}/permissions")

Loading…
Cancel
Save