You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a change to the get all products endpoint. The endpoint should also be able to search for products by categories. The endpoint will optionally accept a category as a query param, validate if it is a valid product category and gets the list of product under that category. The client will receive a 200 upon a successful fetch and a 404 if no products under the category is found. In addition, tests should be included to improve quality, maintainability and to ensure the endpoint work as expected.
Acceptance Criteria
Accepts and validate category as query param if added
Description
Make a change to the get all products endpoint. The endpoint should also be able to search for products by categories. The endpoint will optionally accept a category as a query param, validate if it is a valid product category and gets the list of product under that category. The client will receive a 200 upon a successful fetch and a 404 if no products under the category is found. In addition, tests should be included to improve quality, maintainability and to ensure the endpoint work as expected.
Acceptance Criteria
Requirements
Response:
Successful Response
Error Response
Response Codes:
Unit Tests
The text was updated successfully, but these errors were encountered: