This is a sample Spring Boot application with Maven that includes entities for products and sales orders. The application exposes APIs to create, update, and list products, as well as to add and list sales orders.
Post /api/products/add
{
"name": "Product 1",
"description": "This is a test product",
"brandName": "Brand A",
"salePrice": 100.0,
"stockQuantity": 10
}
PATCH /api/products/1/5
GET /api/products/all
POST /api/salesOrder/add
{
"sales_Id": 0,
"customer": "string",
"timeStamp": "2023-04-16T07:51:06.344Z",
"orderDetails": [
{
"orderDet_Id": 0,
"product": {
"productId": 0,
"description": "string",
"brandName": "string",
"salePrice": 0,
"stockQuantity": 0,
"name": "string"
},
"saleQuantity": 0,
"discount": 0
}
]
}