/*Admin Loan*/ @RequestMapping( value = "/getLoans/{pageNo}/{pageSize}", method = {RequestMethod.GET, RequestMethod.POST}, produces = "application/json") public List<Loan> getLoans(@PathVariable int pageNo, @PathVariable int pageSize) { return ldao.getAllLoans(pageNo, pageSize); }
@RequestMapping( value = "/editLoan", method = {RequestMethod.GET, RequestMethod.POST}, consumes = "application/json") public List<Loan> editLoan(@RequestBody List<Loan> loans) { for (Loan loan : loans) ldao.updateLoan(loan); return ldao.getAllLoans(1, 5); }