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

Save cards to Favorites EP #8

Open
JonoSommers opened this issue Feb 25, 2025 · 0 comments
Open

Save cards to Favorites EP #8

JonoSommers opened this issue Feb 25, 2025 · 0 comments

Comments

@JonoSommers
Copy link
Owner

JonoSommers commented Feb 25, 2025

Description:
When a user clicks on a card inside of their binder they will have a button they can select to add to their favorite cards to be displayed at the bottom when they log in. User ID will need to be in the path so that we know which user the favorite is being added to.

Details:

  • A user can save 4 cards to their favorites
  • A user can remove a card from their favorites
  • Favorites can only store up to 4 cards at a time
  • A user can only add cards to favorites from their binder
  • PATCH request (user id in path)

Examples:
Example request body to add:
(card attribute)

{
    "favorites": true
}

example request body to remove:
(card attribute)

{
    "favorites": false
}

Acceptance Criteria:

  • Postman response/request bodies are what we expect
  • All tests are passing
Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant