.map(user -> new ManagedUserDTO(user))
.collect(Collectors.toList());
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/users");
return new ResponseEntity<>(managedUserDTOs, headers, HttpStatus.OK);
}
<BUG>@RequestMapping(value = "/users/{login}",
</BUG>
method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed

.map(user -> new ManagedUserDTO(user))
.collect(Collectors.toList());
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/users");
return new ResponseEntity<>(managedUserDTOs, headers, HttpStatus.OK);
}
@RequestMapping(value = "/users/{login:[_'.@a-z0-9-]+}",
method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
