Closed Jul-S closed 2 years ago
Who: As a developer What: I want to be able to get all favorites products of specific user Why: so that we can show it in to user on My favorites page
The endpoint needs to return a result that allows the frontend to display favorite products as below:
GET
Check the README file here https://github.com/HackYourFuture-CPH/fp-class18/#-working-with-api-documentation---swagger and this article should also help you with that https://blog.logrocket.com/documenting-your-express-api-with-swagger/
Need to wait until another PR is merged, since it depends on that PR so i closed it for now.
User story
Who: As a developer What: I want to be able to get all favorites products of specific user Why: so that we can show it in to user on My favorites page
Acceptance criteria
The endpoint needs to return a result that allows the frontend to display favorite products as below:
Implementation details
GET
endpoint for 'api/users/{user_id}/favorites'Check the README file here https://github.com/HackYourFuture-CPH/fp-class18/#-working-with-api-documentation---swagger and this article should also help you with that https://blog.logrocket.com/documenting-your-express-api-with-swagger/