restangular icon indicating copy to clipboard operation
restangular copied to clipboard

Automatically update resources on PUT requests

Open ThomasCedrini opened this issue 8 years ago • 0 comments

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 !

ThomasCedrini avatar Mar 03 '17 14:03 ThomasCedrini