Beispiel #1
0
  @RequestMapping(value = "/action/cards", method = RequestMethod.POST)
  public @ResponseBody Card postNewCard(@RequestBody Card request) {

    System.out.println("POST: Responing with new card");
    request.setId(CardFactory.nextId());
    System.out.println(request.toString());

    cardService.addCard(request);
    return request;
  }