GET http://localhost:8080/order/
[
{
"customerName":"John",
"shippingAddress":"Hello World",
"orderItemDTO":[
{
"productCode":"ABC",
"productName":"HEllo Worlf",
"quantity":8,
"orderId":12
},
{
"productCode":"ABC",
"productName":"HEllo Worlf",
"quantity":8,
"orderId":12
}
]
},
{
"customerName":"John",
"shippingAddress":"Hello World",
"orderItemDTO":[
]
}
]
POST /order/ HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Cache-Control: no-cache
{
"customerName":"John",
"orderDate":"10/10/2020",
"shippingAddress":"Hello World",
"total":2000,
"orderItemDTO":[
{
"productCode":"ABC",
"productName":"HEllo Worlf",
"orderId":2,
"quantity":8
},
{
"productCode":"ABC",
"productName":"HEllo Worlf",
"orderId":2,
"quantity":8
}
]
}
{ "orderId": 49 }