Angualr js client for php rest api