Build RESTful API Clients by Mapping Resources, Variables and Authentication