The ideal REST API for the AngularJS applications