@RequestMapping(value = "/{id}", method = RequestMethod.GET, produces = "application/json") public @ResponseBody User lookupMemberById(@PathVariable("id") int id) { return userDao.findById(id); }
@RequestMapping(method = RequestMethod.GET, produces = "application/json") public @ResponseBody List<User> listAllMembers() { return userDao.findAllOrderedByName(); }