Closes #4

Adds the REST API flow