コード例 #1
0
 @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);
 }
コード例 #2
0
 @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);
 }