Problems with Publishing Rest web Service in Mendix 5

I have created a mendix 5.4.1 cloud app and have implemented the Rest web service module from the AppStore. The consuming part is working already. Now I am trying to publish a (very simple) web service (following the documentation on GitHub) to test how it works but the URL returns a 404. When I run the project locally, rest ws is published correctly. Is there someone who has succeeded in publishing a rest web service in a cloud App or is there probably a example project for the publishing part.
3 answers

This is because you most likely don't have the requesthandler configured in on the platform portal for this app. There's a tab on your environment details page that allows you to add these links.

Note that this is only possible for full cloud environments, you won't be able to publish rest webservices in a sandbox.


I have set up the rest handler for my production environment, but when I try to call my .../rest overview it says: "301 Moved permanently"

Am I missing something?


In addition to Achiel's answer;

Recent versions of the REST services modules can run in a 'sandbox compatibility' mode, but then the endpoint of your services are not at /rest/ at /ws-doc/. (Meaning your wsdl documentation will no longer be remotely visible).

This is a temporarily workaround for sandbox environments which is applied automatically if you didn't specify a specific endpoint yourself. Please note that it is not guaranteed that this will be working in the future, but it might help you out for simple PoC's.