As a Backend Developer
I need to develop an endpoint to retrieve and display a list of all available products in the store
So that users can view product details, including ID, name, description, price, and other attributes like images.
Details and Assumptions:
Create a /products GET endpoint.
Fetch all products from the database.
Return product details including SKU, name, description, price (as Decimal), and image URL.
Acceptance Criteria
Given there are products in the database
When a request is made to the endpoint
Then the API returns a 200 OK status code with a list of all products.
Given there are no products in the database
When a request is made to the endpoint
Then the API returns a 204 No Content status code with no data.
As a Backend Developer I need to develop an endpoint to retrieve and display a list of all available products in the store So that users can view product details, including ID, name, description, price, and other attributes like images.
Details and Assumptions:
Acceptance Criteria