rest api and angular adjusts