|
@@ -45,6 +45,17 @@ public class PersonController{
|
45
|
45
|
);
|
46
|
46
|
}
|
47
|
47
|
|
|
48
|
+// @RequestMapping(path="/user/{userId}",method=RequestMethod.PUT)
|
|
49
|
+// public ResponseEntity<Void> updateExist(@RequestBody User user,@PathVariable long userId) {
|
|
50
|
+// try {
|
|
51
|
+// user.setUserId(userId);
|
|
52
|
+// userService.update(user);
|
|
53
|
+// return ResponseEntity.noContent().build();
|
|
54
|
+// } catch (ResourceNotFoundException e) {
|
|
55
|
+// return ResponseEntity.notFound().build();
|
|
56
|
+// }
|
|
57
|
+// }
|
|
58
|
+
|
48
|
59
|
@DeleteMapping("/people/{id}")
|
49
|
60
|
void deletePerson(@PathVariable int id){
|
50
|
61
|
personRepository.delete(id);
|