I am creating an API that receives the following input, and provides the following output. 
I have already created a working method for "new":
@RequestMapping(value = "/new", method = RequestMethod.GET) public StartedGame startGame(HttpSession session){ List<Game> games = getCurrentGames(session); Game newGame = new Game(wordList); games.add(newGame); return new StartedGame(newGame); } Which returns the following JSON:
{ "gameId": "kvmuyw", "word": "_______" } However, I need to create a function for making guesses. I have not had any luck. I have this as my function header, however it does not seem to be correct...
@RequestMapping(value = "/guess", method = RequestMethod.POST, consumes = "application/json", produces = "application/json") public Game makeGuess(@RequestBody String json, HttpSession session)