Product Catalog API
API for browsing and managing a product catalog.
/api/products
Retrieves a list of products. Supports optional query parameters for filtering (e.g., `?category=electronics&inStock=true`) and `limit` to control the number of products returned (e.g., `?limit=1`).
You can add or change query parameters in the path above (e.g., ?name=User).
/api/products/{productId}
Retrieves details for a specific product by ID. Replace {productId} with an ID like `prod_123`.
Replace placeholders (e.g., {userId}) with actual values in the path above. You can also add/edit query parameters (e.g., ?key=value).
/api/products
Adds a new product to the catalog.
/api/products/{productId}
Updates an existing product by ID. Replace {productId} with an ID like `prod_123`.
Replace placeholders (e.g., {userId}) with actual values in the path above.
/api/products/{productId}
Deletes a product by ID. Replace {productId} with an ID like `prod_456`.
Replace placeholders (e.g., {userId}) with actual values in the path above.