@ResponseBody @RequestMapping(value = "/configuration/save", method = RequestMethod.POST) public String save(@RequestBody Account formAcc) { accDao.save(formAcc); return "{\"status\" : 200}"; }
@RequestMapping(value = "/accountProperties", method = RequestMethod.GET) @ResponseStatus(value = HttpStatus.OK) @ResponseBody public Account getAccountProperties() throws ConfigurationException { return accDao.getAccountByID(SessionController.account.getAccountID()); }
@RequestMapping(value = "/configuration/{accID}", method = RequestMethod.GET) @ResponseBody public Account configuration(@PathVariable("accID") Integer accID) { return accDao.getAccountByID(accID); }