@RequestMapping(method = GET) public Page<VoiceFile> list(Pageable pageable) { // execute service return voiceFileService.listFilesForLoggedUser(pageable); }
@RequestMapping(value = "/{id}", method = GET) public VoiceFile findOne(@PathVariable Long id) { // execute service return voiceFileService.findOneForLoggedUser(id); }
@RequestMapping(value = "/all", method = GET) public List<VoiceFile> list() { // execute service return voiceFileService.listFilesForLoggedUser(); }