Guys please the code block below, I have difficulty on defining the order details using JSON.
I think the detail of the order should be an array of ordered items. And some of the item can be a combination of 2 or more components that can be described as an array too.
Please help to create a swagger compatible document of the creating order API base on the payload.
{
"salesman": {
"name": "teststoreadmin"
},
"customer": {
"name": "customerTest"
},
"salesOrderItems":
[
[
{
"itemType": "typeName1",
"componentName": "componentName1"
},
{
"itemType": "typeName2",
"componentName": "componentName2"
}
],
{
"itemType": "typeName3",
"componentName": "componentName3"
}
],
"total": 4503
}