Sample api for working with angluar.js client