Does anyone has an example how to publish a RestService with a complex-type (like order and orderline) as an request?
I want to create an mendix app that produces a rest-service, but I can’t figure out how to transform this json-request to mendix entities post-request
{
"order": {
"name": "Jones",
"phone": "01-23425346",
"orderline": [{
"product": "milk",
"quantity": 3
},
{
"product": "beer",
"quantity": 3
}]
}
}
store the data in: