diff --git a/src/main/java/com/example/cosmos_serversb/resources/GroupsRest.java b/src/main/java/com/example/cosmos_serversb/resources/GroupsRest.java index 5fa76ed..34aa8a6 100644 --- a/src/main/java/com/example/cosmos_serversb/resources/GroupsRest.java +++ b/src/main/java/com/example/cosmos_serversb/resources/GroupsRest.java @@ -1,17 +1,71 @@ 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.GET; -import javax.ws.rs.Path; +import javax.ws.rs.*; @Component @Path("/groups") public class GroupsRest { @GET - public String index() { - return "{1:Tiger}"; + public String getGroups(String uId, String token) throws JsonProcessingException{ + return null; } + @POST + public String createGroup(String name, String uId, String token) throws JsonProcessingException{ + return null; + } + + @GET + public String getGroupInfo(String gId, String token) throws JsonProcessingException{ + return null; + } + + @DELETE + public String deleteGroup(String gId, String token) throws JsonProcessingException{ + return null; + } + + @GET + public String getGroupMembersInfo(String gId, String token) throws JsonProcessingException{ + return null; + } + + @POST + public String addGroupMembers(String gId, String uId, String token) throws JsonProcessingException{ + return null; + } + + @DELETE + public String deleteGroupMembers(String gId, String uId, String token) throws JsonProcessingException{ + return null; + } + + @GET + public String getGroupRequestsInfo(String gId, String token) throws JsonProcessingException{ + return null; + } + + @POST + public String createGroupRequests(String gId, String uId, String product, String deadline, int location, String token) throws JsonProcessingException{ + return null; + } + + @GET + public String getGroupRequestInfo(String gId, String rId, String token) throws JsonProcessingException{ + return null; + } + @PUT + public String changeGroupRequest(String gId, String rId, , String uId, String product, String deadline, int location, boolean done, String token) throws JsonProcessingException{ + return null; + } + + @DELETE + public String GroupsInfo(String gId, String rId, String token) throws JsonProcessingException{ + return null; + } }