/*Admin Author*/ @RequestMapping( value = "/getAuthors/{pageNo}/{pageSize}", method = {RequestMethod.GET, RequestMethod.POST}, produces = "application/json") public List<Author> getAuthors(@PathVariable int pageNo, @PathVariable int pageSize) { return adao.getAllAuthors(pageNo, pageSize); }
@RequestMapping( value = "/deleteAuthor", method = {RequestMethod.GET, RequestMethod.POST}, consumes = "application/json", produces = "application/json") public List<Author> deleteAuthor(@RequestBody Author author) { adao.deleteAuthor(author); return adao.getAllAuthors(1, 5); }