ClientAPI now supports DELETE method

pull/105/merge
Michael Jett 13 years ago
parent abf3f0ec33
commit 7f5b9e2c82

@ -69,6 +69,15 @@ public class ClientAPI {
return "jsonClientView";
}
@RequestMapping(method = RequestMethod.DELETE, headers = "Accept=application/json")
public String apiDeleteClient(@RequestBody String json, Model m) {
ClientDetailsEntity client = new Gson().fromJson(json, ClientDetailsEntity.class);
clientService.deleteClient(client);
return "jsonClientView";
}
@RequestMapping(value="/{id}", method=RequestMethod.GET, headers="Accept=application/json")
@ResponseBody

Loading…
Cancel
Save