create api endpoints for class to consume
Merge pull request #40 from toannguyenle/pureangularjs

create api endpoints for class to consume