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 .
--
Create a OnUpdate POST Service Microflow.
Run Mendix, add a new Published Service and enter the name of your microflow to run for your POST service.
Use postman to test the publishing POST Service.
[P.S.]
If you happen to stumble upon this type of error:
Caused by: java.lang.IllegalArgumentException: requirement failed: Reference 'MyRestModule.Image' only accepts ids of type 'MyRestModule.Request_Image' (Id '[MendixIdentifier:: id=12947848928690788 objectType=MyRestModule.Request_Transaction entityID=46]' is not allowed).
Then do the following:
- Turn the association into an */* one.
- Delete the assocation.
- Recreate the 1/1 association with the arrow in opposite direction.