Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 439 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 439 Bytes

API SPEC

Create Product

Request :

  • Method : POST
  • Endpoint : /api/products
  • Body :
{
    "id": "string,unique",
    "name": "string",
    "price": "long",
    "quantity": "integer",
    "createdAt": "date"
}

Response :

{
  "code": "number",
  "status": "string",
  "data": {
    "id": "string,unique",
    "name": "string",
    "price": "long",
    "quantity": "integer",
    "createdAt": "date"
  }
}