Download OpenAPI specification:Download
Add a new product to our list of available products
name required | string |
category required | string |
price required | integer |
{- "name": "How to build APIs",
- "category": "Book",
- "price": 1500
}
{- "id": 1,
- "name": "How to build APIs",
- "category": "Book",
- "price": 1500
}
Update an existing product by ID
id required | integer The ID of the product to update |
name required | string |
category required | string |
price required | integer |
{- "name": "How to build APIs",
- "category": "Book",
- "price": 1500
}
{- "id": 1,
- "name": "How to build APIs",
- "category": "Book",
- "price": 1500
}