HackYourFuture-CPH / fp-class18

Interior design webshop
MIT License
1 stars 0 forks source link

Backend: Endpoint to show similar products and category name - GET api/products?category={category_name} #70

Closed OlenaKasian closed 2 years ago

OlenaKasian commented 2 years ago

User story

Who: As a developer What: I want to be able to get products with specific criteria Why: so that we can show those products(similar products and category name)

Acceptance criteria

The endpoint needs to return a result that allows the Frontend(Fixes #63) to display the products as we can see below:

image

Implementation details

Create the GET endpoint for /api/products?category={category_name} 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/

OlenaKasian commented 2 years ago

The issue is closed because PR#86 is closed. The PR #86 is closed because the feature api/products?category={category_name} has been added to the PR #89