package com.example.cosmos_serversb.resources; import org.springframework.stereotype.Component; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.core.JsonProcessingException; import javax.ws.rs.*; @Component @Path("/groups") public class GroupsRest { @GET public String getGroups(String uId) throws JsonProcessingException{ return null; } @POST public String createGroup(String name, String uId) throws JsonProcessingException{ return null; } @GET public String getGroupInfo(String gId) throws JsonProcessingException{ return null; } @DELETE public String deleteGroup(String gId) throws JsonProcessingException{ return null; } @GET public String getGroupMembersInfo(String gId) throws JsonProcessingException{ return null; } @POST public String addGroupMembers(String gId, String uId) throws JsonProcessingException{ return null; } @DELETE public String deleteGroupMembers(String gId, String uId) throws JsonProcessingException{ return null; } @GET public String getGroupRequestsInfo(String gId) throws JsonProcessingException{ return null; } @POST public String createGroupRequests(String gId, String uId, String product, String deadline, int location) throws JsonProcessingException{ return null; } @GET public String getGroupRequestInfo(String gId, String rId) throws JsonProcessingException{ return null; } @PUT public String changeGroupRequest(String gId, String rId, String uId, String product, String deadline, int location, boolean done) throws JsonProcessingException{ return null; } @DELETE public String GroupsInfo(String gId, String rId) throws JsonProcessingException{ return null; } }