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