POST /product
| Name | Type | Description |
|---|---|---|
| name | string |
required name of the product |
| price | number |
required price of the product |
| userId | number |
required id of the user creating the product |
| ShortDesc | string |
optional short description of the product |
GET /products
GET /product/:productId
PUT /product/:productId
| Name | Type | Description |
|---|---|---|
| name | string |
optional name of the product |
| price | number |
optional price of the product |
| ShortDesc | string |
optional short description of the product |
DELETE /product/:productId
POST /order
| Name | Type | Description |
|---|---|---|
| User | number |
required user to whom the order belongs to |
| Product | Array<number> |
required List of the product ids in the order |
| Address | string |
required users address where the order should be shipped |
GET /order
GET /order/:orderId
PATCH /order/:orderId/address
PATCH /order/:orderId/product
PATCH /order/:orderId/status
| Name | Type | Description |
|---|---|---|
| Address | string |
required users address where the order should be shipped |
| Product | Array<number> |
required List of the product ids in the order |
| Status | enum |
required
|
DELETE /order/:orderId
POST /consume/product/created
| Name | Type | Description |
|---|---|---|
| Id | string |
required id of the product |
| Name | string |
required name of the product |
| UserId | number |
required id of the user creating the product |
| Price | number |
required price of the product |
| ShortDesc | string |
optional short description of the product |
| CreatedAt | datetime |
optional product created date |
| UpdatedAt | datetime |
optional product updated date |
POST /consume/product/updated
| Name | Type | Description |
|---|---|---|
| Id | string |
required id of the product |
| Name | string |
required name of the product |
| UserId | number |
required id of the user creating the product |
| Price | number |
required price of the product |
| ShortDesc | string |
optional short description of the product |
| CreatedAt | datetime |
optional product created date |
| UpdatedAt | datetime |
optional product updated date |
POST /consume/product/deleted
| Name | Type | Description |
|---|---|---|
| Id | string |
required id of the product |
| Name | string |
required name of the product |
| UserId | number |
required id of the user creating the product |
| Price | number |
required price of the product |
| ShortDesc | string |
optional short description of the product |
| CreatedAt | datetime |
optional product created date |
| UpdatedAt | datetime |
optional product updated date |