Published REST API - body parameter mapping

0
A body parameter in API call should look like this: { "email": "abc@mendix", "isAdult": true } Can someone guide me how to create import mapping for this parameter and use it?
asked
2 answers
0

The first step is to copy that JSON into a Mendix JSON Structure in Studio Pro.

https://docs.mendix.com/refguide/json-structures/

 

The next is to create an Import Mapping. As your structure is so simple, using automatic mapping should be the easiest approach.

https://docs.mendix.com/refguide/map-automatically/

 

Now you have the structure, you can use it in a Published REST Service to import data or directly in a microflow using an Import With Mapping action.

https://docs.mendix.com/refguide/publish-a-rest-service/

https://docs.mendix.com/refguide/import-mapping-action/

 

I hope this helps. Good luck!

answered
0

Excellent. Thank you Robert very much!

answered