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

#163478804 Implement user followership #24

Merged
merged 1 commit into from
Feb 10, 2019

Conversation

jsamchineme
Copy link
Contributor

What does this PR do?

Implement user followership

Description of Task to be completed?

  • write unit tests for the endpoints
  • protect the route with passport middleware
  • implement the controller logic

How should this be manually tested?

  • clone this branch feature/163478804/user-followership
  • signup two users with the POST /api/users endpoint
  • get the userId of user1 and the token of user2
  • get user2 to follow user1 using the endpoint POST /api/users/{user1Id}/follow
  • check that the id of user2 is present in the array of followers returned in the response.data.followers property.
    NB: response.data refers to the user who is being followed whose id is passed in the request /api/users/{user1Id}/follow

Any background context you want to provide?

None

What are the relevant pivotal tracker stories?

https://www.pivotaltracker.com/story/show/163478804

Screenshots (if appropriate)

None

Questions:

None

- write unit tests for the endpoints
- protect the route with passport middleware
- implement the controller logic

[Delivers #163478804]
@ifiokeyo ifiokeyo merged commit 41c1e0b into staging Feb 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants