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

POST /api/v1/interests/addInterest #29

Open
9 tasks
Amoodaa opened this issue Sep 22, 2019 · 0 comments
Open
9 tasks

POST /api/v1/interests/addInterest #29

Amoodaa opened this issue Sep 22, 2019 · 0 comments

Comments

@Amoodaa
Copy link
Collaborator

Amoodaa commented Sep 22, 2019

this is a stretch goal initially!

  • Route
  • POST /api/v1/interests/addInterest to add a new interest
    • we will using this route on the Signup component, and the filter page in the Home Component, only if the user wants a new interest that wasnt added before!

  • Request body
 req.body =  {
 newInterest: "some interest"
 }

  • Request Validation
    • newInterest: "some interest"

  • Queries
 addNewInterest(req.body)  

  • Helpers
    • interestValidationSchema

  • Testing

    • testing the route
    • testing the query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants