REST API

Trying this again.