code: @GET
    @Path("friendswith")
    @RolesAllowed({"ROLE_ADMIN", "ROLE_USER"})
    public Response friendsWith(@Context HttpServletRequest request,
                                @QueryParam("pageSize") @DefaultValue("10") int pageSize,
                                @QueryParam("cursorKey") String cursorKey) {
  
      Long userId = (Long) request.getAttribute(OAuth2Filter.NAME_USER_ID);
      CursorPage<DUser> page = userService.getFriendsWith(userId, pageSize, cursorKey);
  
      // Only return basic user information about your friends
      Collection<DUser> users = new ArrayList<>();
      for (DUser user : page.getItems()) {
        DUser limitedUserInfo = new DUser();
        limitedUserInfo.setId(user.getId());
        limitedUserInfo.setUsername(user.getUsername());
        users.add(limitedUserInfo);
      }
      page.setItems(users);
  
      return Response.ok(page).build();
    }
docs: Get all users added me as friends
  @param request injected
  @param pageSize page size
  @param cursorKey cursor key
  @return page of users