Generic REST API implementation so far