Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82395

Using RestServices to Publish a GET Service.

$
0
0

 

This was originally a question as I was getting an error.

After having downloaded the RestServices module, go to project settings -> runtime and change After startup microflow to a new microflow.

Add StartPublishServices to the microflow.

Add the service overview to your administration and compile.

Create two modules. One normal one and one for REST.

Create a domain model for both .

--

Run Mendix, add a new Published Service and name a microflow to run for your GET service.

Now in the microflow, have the entity type you want to get as the parameter and as the return object.

 

Then run Postman and set http method to GET, the url to http://localhost:8080/rest/<service_name>/1 and press 'send'.

And if all went correctly, it returns a json object with "Success": true".


Viewing all articles
Browse latest Browse all 82395

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>