HackYourFuture-CPH / fp-class18

Interior design webshop
MIT License
1 stars 0 forks source link

Backend: Endpoint to retrieve all orders by user - GET api/orders?user={user_id} #46

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 purchases made by specific user Why: so that we can show it in user profile

Acceptance criteria

The endpoint needs to return a result that allows the frontend to display purchase info as marked red 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/

dpfernandes commented 2 years ago

Please ignore the ITEM ID line that we can see in the wireframes.

Screenshot 2021-11-07 at 21 26 03