Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80923

Complex types in a request of a published Rest-service

$
0
0

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:


Viewing all articles
Browse latest Browse all 80923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>