added response code to delete function
This commit is contained in:
parent
e24b27308b
commit
40970b8223
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user