REST API module with embedding capability for AngularJS