Partil step to rest api and angular resource