Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API view to search for users #94

Open
HuxleyBerry opened this issue Jan 11, 2025 · 1 comment
Open

API view to search for users #94

HuxleyBerry opened this issue Jan 11, 2025 · 1 comment
Assignees
Labels
backend Task must have a back end issue difficulty::medium This issue is medium difficulty priority::medium This issue is medium priority

Comments

@HuxleyBerry
Copy link
Member

HuxleyBerry commented Jan 11, 2025

Create an API view which searches for the users whose names start with a given string. These users should be returned with the following information:

  • Avatar
  • Username
  • User id
  • Friend status. This represents one of four possibilities
    • The logged in user is friends with the given user
    • The logged in user has sent a friend request to the given user, but it is yet to be accepted.
    • The given user has sent a friend request to the logged in user, but it is yet to be accepted (also return the friendship id in this case).
    • No friend request has been sent from the logged in user to the given user or vice versa

The list of users should be truncated so that no more than 15 users are returned. However, make sure that a user whose name exactly matches the supplied string is not among those who is omitted due to the truncation.

@HuxleyBerry HuxleyBerry added backend Task must have a back end issue priority::medium This issue is medium priority difficulty::medium This issue is medium difficulty labels Jan 11, 2025
@23348918 23348918 self-assigned this Jan 11, 2025
Copy link

Branch issue-94-API_view_to_search_for_users created!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Task must have a back end issue difficulty::medium This issue is medium difficulty priority::medium This issue is medium priority
Projects
None yet
Development

No branches or pull requests

2 participants