Rest API of TODOs consumed by AngularJS