sample rest service for angularjs tests