Say I have a resource with several fields, and some of them are read-only. Or maybe they belong to different use cases that I would like to handle differently on the server.
For example, my bing resource looks like this:
{id: 1, foo: "A", bar: "B", createdAt: "2013-05-05"}
I would like to get Restangular for PUT for only some fields, by performing queries such as:
PUT /bing/1 {foo: "A"} PUT /bing/1 {bar: "B"} PUT /bing/1 {foo: "A", bar: "B"}
I want to do not :
PUT /bing/1 {id: 1, foo: "A", bar: "B", createdAt: "2013-05-05"}
How can i achieve this?
source share