Brand new REST API. Still work in progress