Open webcane opened 2 years ago
example
@GetMapping("/{username}") public ResponseEntity<?> findOne(@PathVariable String username) { return userService .findOne(username) .map(DetailedUserDto::fromEntity) .map(ResponseEntity::ok) .orElse(ResponseEntity.notFound().build()); }
example