Nostromos / what.ecom

PERN Ecom app for Codecademy's Full Stack path.
MIT License
0 stars 0 forks source link

Set up product endpoints #26

Closed Nostromos closed 8 months ago

Nostromos commented 8 months ago

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}