@RequestMapping(method = RequestMethod.GET)
    @ResponseBody
    public List<EntryDTO> getNotifications(
            @RequestParam(value = "page", required = false) Integer page,
            @RequestParam(value = "pageSize", required = false) Integer pageSize) {

        return restService.getNotifications(page, pageSize);
    }
@RequestMapping(method = RequestMethod.GET)
    @ResponseBody
    public List<EntryDTO> getNotifications(
            @RequestParam(value = "page", required = false) Integer page,
            @RequestParam(value = "pageSize", required = false) Integer pageSize) {

        return restService.getNotifications(page, pageSize);
    }
@ RequestMapping ( method = RequestMethod . GET ) @ ResponseBody public List < EntryDTO > getNotifications ( @ RequestParam ( value = "page" , required = false ) Integer page , @ RequestParam ( value = "pageSize" , required = false ) Integer pageSize ) { return restService . getNotifications ( page , pageSize ) ; }
Get the list of notifications.  Supports optional (and recommended!) paging

@param page The 0 based page number
@param pageSize the page size
@return the list of matching notifications.
Get the list of notifications . Supports optional ( and recommended! ) paging