Browse Source

added response code to delete function

Joachim Lusiardi 7 years ago
parent
commit
40970b8223

+ 1
- 0
src/main/java/de/lusiardi/testprojekt/controller/RestController.java View File

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