@RequestMapping(value = "/save", method = RequestMethod.POST, headers = "Accept=application/json") public @ResponseBody void saveParameter(@RequestBody LocalityWithin within) { withRepo.saveLocallityWithin(within); }
@RequestMapping(value = "/getAll", method = RequestMethod.GET) public @ResponseBody List<LocalityWithin> getAll() { return withRepo.allLocalityWithin(); }