$resource update

Updating the api service.