REST Client and Server APIs for the XP Framework