@RequestMapping(value = "/wrestlers/{wrestlerId}", method = RequestMethod.GET) public @ResponseBody Wrestler getWrestlerInfo(@PathVariable(value = "wrestlerId") int wrestlerId) throws Exception { return wrestlerService.findWrestler(wrestlerId); }
@RequestMapping(value = "/wrestlers", method = RequestMethod.GET) public @ResponseBody List<Wrestler> getWrestlers() throws Exception { return wrestlerService.retrieveWrestlers(); }