Construct api wrappers around RESTful endpoints.