@RequestMapping(method = RequestMethod.GET, value = "/nomor/{nomor}") @ResponseBody public ListEntityRestMessage<Pemakaian> getByNomorResep(@PathVariable String nomor) throws ApplicationException, PersistenceException { List<Pemakaian> list = pemakaianService.getByNomorResep(nomor); return ListEntityRestMessage.createListPemakaian(list); }
@RequestMapping(method = RequestMethod.GET, value = "/pasien/{id}") @ResponseBody public ListEntityRestMessage<Pemakaian> getByPasien(@PathVariable Long id) throws ApplicationException, PersistenceException { List<Pemakaian> list = pemakaianService.getByPasien(id); return ListEntityRestMessage.createListPemakaian(list); }