@RequestMapping(value = "/user/{email}", method = RequestMethod.PUT)
 public ResponseEntity<User> updateUser(@PathVariable String email, @RequestBody User user)
     throws EntityNotFoundException {
   User saved = userRepository.update(email, user);
   return new ResponseEntity<>(saved, HttpStatus.OK);
 }