v1

latestOpenAPI 3.0.3Apache 2.02026-07-1710047196.1 KB
products

Get products by category

Get products by category.

get/products/categories/{category}

Path parameters

categorystring required

The category of the products to be retrieved

Example:Category 1

Response

Products retrieved successfully

Example response

{
  "products": [
    {
      "id": "1",
      "name": "Product 1",
      "description": "This is a product",
      "price": 100,
      "stock": 100,
      "category": "Category 1"
    }
  ]
}