ClientAPI now supports DELETE method
parent
abf3f0ec33
commit
7f5b9e2c82
|
@ -69,6 +69,15 @@ public class ClientAPI {
|
||||||
return "jsonClientView";
|
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")
|
@RequestMapping(value="/{id}", method=RequestMethod.GET, headers="Accept=application/json")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
|
Loading…
Reference in New Issue