Api angular using RESTful services and angular js.