day-cohort-70 / Bangazon-API-BandyChamps

0 stars 0 forks source link

Feature: User can like or dislike products #28

Open stevebrownlee opened 2 months ago

stevebrownlee commented 2 months ago

Given the user is authenticated When the client performs a POST operation to the /products/n/like URL Then that preference should be created for the current user

Given the user is authenticated When the client performs a DELETE operation to the /products/n/like URL Then that preference should be removed for the current user

Given the user is authenticated When the client performs a GET operation to the /products/liked URL Then the response should contain a list of products liked by the user

All likes should be displayed in the user profile

samsheps commented 1 month ago

nick recommends we begin by emulating recommending a product which seems to be established in the codebase (click-through "works" but currently yields a 500 fetch error)