@ResponseBody @RequestMapping(value = "/update", method = RequestMethod.POST) public String update(@RequestParam("id") Long groupId, @RequestParam("name") String newName) { groupService.updateGroupName(groupId, newName); return OK; }