What is your usecase?
When you say “access a rest service” i am assuming you want to call an External REST API over HTTP right?
you can consume that service in Mendix using in a Javascript Action using Browser Fetch API.
No Ajax is not supported