Example of a REST API call with Export mapping
Hi, I have a POST method which accepts the body parameters. Is there any example of calling a REST API service with export mapping?
I don't know of a concrete example, but it should be pretty straight forward.
What you need to do is.
- Create a JSON Structure that looks like the body you want so send
- Create an export mapping using this JSON structure
- Map your domain model entites in this mapping
Now you can do your rest call, using the export mapping and pass the domain model object that contains your data.