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

Create an Endpoint to Follow a User #48

Closed
3 of 5 tasks
Tracked by #45
William-McGonagle opened this issue Dec 28, 2021 · 2 comments
Closed
3 of 5 tasks
Tracked by #45

Create an Endpoint to Follow a User #48

William-McGonagle opened this issue Dec 28, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@William-McGonagle
Copy link
Member

William-McGonagle commented Dec 28, 2021

Idea

Full Idea Here - #45

There are currently endpoints being worked on that let users see who someone is following and who they are followed by, but there needs to be an endpoint for following someone.

The endpoint path will be /user/:id/follow and it will be accessible using a post request. It will need to require authentication to determine the user id, and it should properly handle all edge cases (user doesn't exist, not logged in, etc).

Todo

  • Auth Required for Endpoint
  • Endpoints
    • POST /user/:id/follow
  • Testing
    • POST /user/:id/follow
@William-McGonagle William-McGonagle added duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed and removed duplicate This issue or pull request already exists labels Dec 28, 2021
@NeilChaudhari NeilChaudhari self-assigned this Dec 29, 2021
@NeilChaudhari
Copy link
Member

Follow and Unfollow User endpoints finished

@William-McGonagle
Copy link
Member Author

We can add a testing suite in later issues- the code is looking nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants