Newer
Older
CosmosServer / src / main / java / com / example / cosmos_serversb / resources / GroupsRest.java
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, 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;
    }
}