mgonto / restangular

AngularJS service to handle Rest API Restful Resources properly and easily
MIT License
7.87k stars 840 forks source link

Automatically update resources on PUT requests #1464

Closed ThomasCedrini closed 5 months ago

ThomasCedrini commented 7 years ago

Hello everyone,

I discovered Restangular a month ago and I really enjoy using it. Nevertheless, I feel like something is missing in the way I use it.

For instance, each time I put a resource, I want to update the resource with the API response. If I upload an image, I send the JS File object in the resource and on the API response update that resource with the response url. How can I have this behaviour for any Restangular instance without adding the same boilerplate code ?

Thank you !