How to use a REST API in your Mendix App

0
Hi everybody   I create some REST API for my App, but I can’t find a way how to use the REST API directly in the Homepage of my API. I just can run and test my REST API from the Location Address. Can anybody help me in this case?
asked
2 answers
1

Hello Zoe,

You can call your service by using a button which calls a microflow. In the microflow you can use a call rest action – The documentation for it is here.

Hope this helps

answered
1

I’m not exactly sure what you mean by ‘test your app from the homepage of your API.’

  By homepage of your API, do you mean something like how do I test rest service you are PUBLISHING using the Swagger that is generated? Mendix publishes documentation of APIs you make for other apps to consume and you can test those from the swagger pages. Documentation on that can be found here: 

https://docs.mendix.com/refguide/published-rest-service

Mendix also has a micro learning module on the academy page found here.

 Alternatively, are you looking for a way to CONSUME REST services that other applications are exposing? If so, follow the link that Dragos provided. Hopefully this helps.

answered