WIP: basic functionality in the REST API