Best practice using REST services from Xpages

What is the best way to interact with a external REST API/service from an Xpage?