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

Friends API #16

Closed
9 tasks done
Tracked by #1
arafaysaleem opened this issue Aug 20, 2021 · 2 comments
Closed
9 tasks done
Tracked by #1

Friends API #16

arafaysaleem opened this issue Aug 20, 2021 · 2 comments
Labels
epic Theme of work that contains several sub-tasks or Issues

Comments

@arafaysaleem
Copy link
Collaborator

arafaysaleem commented Aug 20, 2021

Description

This epic is a sub goal of the epic for Students API and provides functionality surrounding friends of students. This epic requires multiple endpoints to be setup and tested along with their detailed documentation.

Initiative / goal

This API impacts all our unipal finder and memories feed modules as without this we can't show relevant memories on the feed and we can't run matching algorithms. We want to be able to manage friends of a student. We want a two way relationship from the initiating student to the accepting student and vice versa. We should work on this immediately after setting up Friend Requests API.

Hypothesis

We must have Friend Requests and Students API setup prior to this. The following is true by the end of this API

  • We can create friendships for a student
  • We can delete friendships for a student
  • We can update friendships for a student

Acceptance criteria and must have scope

In the end we need to have a collection of following endpoints:

  • GET All Friends (Temporary - For testing only)
  • POST A New Friendship For A Student
  • PATCH A Friendship For A Student
  • DELETE A Friendship For A Student
  • Documentation For Each Endpoint
  • Tests For Each Endpoint

Stakeholders

None

Timeline

2 weeks are needed to setup all the foundation, along with testing and documentation. No blockers expected.

@arafaysaleem arafaysaleem added the epic Theme of work that contains several sub-tasks or Issues label Aug 20, 2021
This was referenced Aug 20, 2021
@arafaysaleem arafaysaleem changed the title [EPIC] Friends API Friends API Aug 24, 2021
@arafaysaleem
Copy link
Collaborator Author

When a friend request is accepted we create a new friend entry in this table.

When a friend is removed we delete this friend entry along with it's corresponding friend_request.

@arafaysaleem
Copy link
Collaborator Author

The endpoints for this API were shifted inside #15, and closed in PR #120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Theme of work that contains several sub-tasks or Issues
Projects
None yet
Development

No branches or pull requests

1 participant