product

Add Product

Add new products to the store

post/products

Request

  • Base URL
    http://localhost:8443
  • URL
    http://localhost:8443/products
  • Auth
    none declared

Request body applicatoin/json

idinteger
namestring required
categorystring required
priceinteger required

Example request

{
  "id": 3,
  "name": "ABC Smart TV",
  "category": "Electronics",
  "price": 39999
}

Response

Successful operation

idinteger
namestring required
categorystring required
priceinteger required

Example response

{
  "id": 3,
  "name": "ABC Smart TV",
  "category": "Electronics",
  "price": 39999
}

Changes

No recorded changes to this operation across all 1 revision of this API.