Exemplo n.º 1
0
  @RequestMapping(value = "/action/cards", method = RequestMethod.GET)
  public @ResponseBody List<Card> geoCards(@ModelAttribute CardRequest request) {

    System.out.println("Sending cards: " + cardService.getCards().size());
    return cardService.getCards();
    // int size  = 5;
    //        List<Card>  cards = new ArrayList<Card>();
    //        int i = 0;
    //        for (int j = 0; j < size ; j++) {
    //            cards.add(CardFactory.create("Card-"+j, " Bla bla bla"+j, null,"gazetapl_get",
    // "www.gazeta.pl"));
    //        }

    //        return cards;

  }