Newer
Older
IrisServer / src / main / java / com / ntlab / irisserver / resources / GameStateRest.java
package com.ntlab.irisserver.resources;

import com.ntlab.irisserver.entities.Turn;
import org.springframework.stereotype.Component;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import java.util.List;

@Component
@Path("/rooms")

public class GameStateRest {
    @Path("/{rid}/game/opens")
    @GET
    public List<Integer> getOpens(@PathParam("rid") String rid){

        return null;
    }


    @Path("/{rid}/game/turn")
    @GET
    public Turn getTurn(@PathParam("rid") String rid) {
        return null;
    }
}