Call External POST API using custom template string.

0
  Can Someone Help me in mendix to how to call an external Api using rest template post data with using custom template string : for  {     "country" : "India",     "state" : "Delhi",     "city" : "Delhi",     "zipcode" : 401301 } passing as in body of request, and zipcode is of type integer.  How we can prepare custom template string.  
asked
2 answers
1

Hey Gaurav,

If the Values are static, you can paste the JSON structure as it is,

You can refer to the image below,

 

But, if the values are dynamic, then you can pass the params into the template, from the microflow itself,

e.g,

{

{

    "country" : "India",

    "state" : "Delhi",

    "city" : "Delhi",

    "zipcode" : {2}
}

 

Let me know, if you face any issues,

Hope it helps!

answered
0

Hi gaurav
follow this for details explanation of calling api from mendixfollow this for details explanation of calling api from mendix
 

https://docs.mendix.com/refguide/call-rest-action/https://docs.mendix.com/refguide/call-rest-action/ 

answered