ClientAPI header updates

pull/105/merge
Michael Jett 13 years ago
parent a4fc4e939e
commit 6b481cd3bb

@ -44,7 +44,7 @@ public class ClientAPI {
} }
@PreAuthorize("hasRole('ROLE_ADMIN')") @PreAuthorize("hasRole('ROLE_ADMIN')")
@RequestMapping(method = RequestMethod.GET, headers="application/json") @RequestMapping(method = RequestMethod.GET, headers="Accept=application/json")
public ModelAndView apiGetAllClients(ModelAndView modelAndView) { public ModelAndView apiGetAllClients(ModelAndView modelAndView) {
Collection<ClientDetailsEntity> clients = clientService.getAllClients(); Collection<ClientDetailsEntity> clients = clientService.getAllClients();
@ -54,7 +54,7 @@ public class ClientAPI {
return modelAndView; return modelAndView;
} }
@RequestMapping(method = RequestMethod.POST, headers="application/json") @RequestMapping(method = RequestMethod.POST, headers="Accept=application/json")
@ResponseBody @ResponseBody
public ClientDetailsEntity addClient(@RequestBody ClientDetailsEntity c) { public ClientDetailsEntity addClient(@RequestBody ClientDetailsEntity c) {
/*ClientDetailsEntity created = clientService.createClient() /*ClientDetailsEntity created = clientService.createClient()

Loading…
Cancel
Save