HackYourFuture-CPH / fp-class18

Interior design webshop
MIT License
1 stars 0 forks source link

Backend: Endpoint to retrieve favorite products by user - GET api/users/{user_id}/favorites #44

Closed Jul-S closed 2 years ago

Jul-S commented 2 years ago

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: image

Implementation details

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/

BikramRawat commented 2 years ago

Need to wait until another PR is merged, since it depends on that PR so i closed it for now.