implement a real rest api
read-only first pass in angular