How to consume REST API POST, PUT and DELETE methods.

0
Hi all, I am new to the Mendix platform, I have two apps : for Expose data where I have exposed data with 4 method (GET, PUT, DELETE AND POST). to consume data (in this app I have successfully consumed the GET method)  In the second app, I want to implement other 3 methods as well(i.e. POST, PUT and DELETE) but I don't have an idea how to do this, I search it over the internet, Mendix courses, and forums but was unable to find required information for how to implement these methods. Thanks in advance.
asked
3 answers
1

Hi Rahul, 

In a microflow, you can call the ‘Call REST service’ activity in which you can select which method you want to perform on the endpoint:

 

So change the default GET method to Delete / POST / what you want. Remember that for a PUT and a POST, contrary to GET and DELETE a body is needed that is sent with the request.

answered
7

Hello Rahul,

 

Please check out an academy learning path video

https://academy.mendix.com/link/paths/33/Create-a-REST-API-(Micro-Learning)- 

This tutorial will help you to create REST services in the Mendix project. 

 

Refer to the below link about how to consume the REST services in the Mendix project

https://docs.mendix.com/howto/integration/consume-a-rest-service/

 

Hope this helps!

answered
0

See this https://docs.mendix.com/refguide/published-rest-operation/

answered