There is a great tutorial in the Mendix documentation on how to consume a third party REST service. It gives a full run through along with an example you can follow along with.
https://docs.mendix.com/howto/integration/consume-a-rest-service
Hope this helps.