You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for two users to become friends, one user needs to send a friend request to the other user. In ChiGame, this is handled specifically by the FriendInvitation model. A user can create a FriendInvitation and another user can then accept that invitation.
In this issue, we aim to allow a user to make a friend request from the API endpoint: /api/friend-invitations/send/ and accept a specific friend request at friend-invitations/accept/<int:pk>/' where the pk is the id of the specific request.
We will know when this issue is completed when these endpoints work as described above.
The text was updated successfully, but these errors were encountered:
I am creating API Endpoints that deal with handling POST requests for FriendInvitations; the first endpoint is done by first "Sending" a FriendInvitation object, which essentially creates one of these objects with the user pk of both sender and receiver. Then, another endpoint would deal with "Accepting" the invitation, which takes in the FriendInvitation pk, and changes the "accepted" attribute to True if done properly. Then, a ListView for GET requests of all Friend Invitations, pending and accepted.
Summary:
In order for two users to become friends, one user needs to send a friend request to the other user. In ChiGame, this is handled specifically by the
FriendInvitation
model. A user can create aFriendInvitation
and another user can then accept that invitation.In this issue, we aim to allow a user to make a friend request from the API endpoint:
/api/friend-invitations/send/
and accept a specific friend request atfriend-invitations/accept/<int:pk>/'
where thepk
is theid
of the specific request.We will know when this issue is completed when these endpoints work as described above.
The text was updated successfully, but these errors were encountered: