Add the logic for handling CRUD operations related to products.
Typically, e-commerce APIs will allow for product retrieval of various degrees of specificity. For instance, retrieving products by category is a common practice. Retrieving a single product for display is also very common. One way of structuring these endpoints would be the following:
GET /products?category={categoryId}
GET /products/{productId}
Add the logic for handling CRUD operations related to products.
Typically, e-commerce APIs will allow for product retrieval of various degrees of specificity. For instance, retrieving products by category is a common practice. Retrieving a single product for display is also very common. One way of structuring these endpoints would be the following:
GET /products?category={categoryId} GET /products/{productId}