diff --git a/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java b/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java index 56e797b..bb20516 100644 --- a/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java +++ b/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java @@ -19,6 +19,7 @@ @GET //現在のターンの取得 @Path("/{rid}/game/turns") + @Produces(MediaType.APPLICATION_JSON) public Integer getTurnNumber(@PathParam("rid") String rid) { RoomManager rm = RoomManager.getInstance(); Room room = rm.getRoom(rid); @@ -68,6 +69,7 @@ @GET //ヒントを取得 @Path("/{rid}/game/turns/{tno}/hint") + @Produces(MediaType.APPLICATION_JSON) public String getHint(@PathParam("rid") String rid, @PathParam("tno") int tno){ RoomManager rm = RoomManager.getInstance(); Room room = rm.getRoom(rid); @@ -95,6 +97,7 @@ // rooms/{rid}/game/turns/{tno}/max: @GET //Maxを取得 @Path("/{rid}/game/turns/{tno}/max") + @Produces(MediaType.APPLICATION_JSON) public Integer getMax(@PathParam("rid") String rid, @PathParam("tno") int tno){ RoomManager rm = RoomManager.getInstance(); Room room = rm.getRoom(rid);