v1

latestOpenAPI 3.0.3Apache 2.02026-07-1710047196.1 KB
products

Get a product

Get a product entry.

get/products/{product_id}

Path parameters

product_idstring required

The id of the product to be retrieved

Example:1

Response

Product retrieved successfully

idstring

The id of the product

namestring

The name of the product

descriptionstring

A brief description of the product

pricenumber

The price of the product

stockinteger

The stock quantity of the product

categorystring

The category of the product

Example response

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