Have a look at the learning modules as they cover how to use REST services in depth.
https://gettingstarted.mendixcloud.com/link/module/138/lecture/1226
Hope this helps.
Or checkout this widget: https://appstore.home.mendix.com/link/app/106094/First-Consulting/ArcGIS-Widget
Regards,
Ronald