added response code to delete function

This commit is contained in:
Joachim Lusiardi 2013-09-14 16:26:26 -07:00
parent e24b27308b
commit 40970b8223

View File

@ -42,6 +42,7 @@ public class RestController {
@RequestMapping(value = "persons/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "persons/{id}", method = RequestMethod.DELETE)
@ResponseBody @ResponseBody
@ResponseStatus(HttpStatus.GONE)
public boolean deletePerson(@PathVariable(value = "id") int id) { public boolean deletePerson(@PathVariable(value = "id") int id) {
PersonDto toDelete = null; PersonDto toDelete = null;
for (PersonDto person : persons) { for (PersonDto person : persons) {