HackYourFuture-CPH / fp-class18

Interior design webshop
MIT License
1 stars 0 forks source link

Backend: Endpoint to retrieve specific product by id - GET api/products/{product_id} #64

Closed GreeshmaRahool closed 2 years ago

GreeshmaRahool commented 2 years ago

User story

Who: As a developer What: Able to retrieve information about a specific product. Why: so the user can see the specific product details.

Acceptance criteria

image

Check the wireframes Display product page here: https://www.figma.com/file/lMeDy1n608SLjsKYrKu1nc/HYF-WebShop?node-id=0%3A1

Implementation details

Create the GET endpoint for 'api/products/{product_id}'

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/

GreeshmaRahool commented 2 years ago

Already created an issue for retrieving product with productid