#398 RESTful API

Resolves #398