Add RESTful interface to angular