Skip to content

Commit

Permalink
Document how to switch from PATCH to PUT.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljungberg committed Jan 29, 2013
1 parent 80426c3 commit 5b99f77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ This assumes the CSRF token is available as a cookie named `csrftoken`.

You could also use this delegate method as a final opportunity to make general changes to requests.

### PUT vs PATCH

By default Ratatosk will transmit any changes you make using `PATCH` requests which only contain the properties which were actually changed. This minimises traffic and reduces problems related to rewriting data considered read-only.

If your server does not support the `PATCH` verb you can use `PUT` instead. With `PUT` requests the whole serialised form of the resource is "put" to the server for each change.

[[WLRemoteLink sharedRemoteLink] setSaveAction:WLRemoteActionPutType];

## License ##

Free to use and modify under the terms of the BSD open source license.

0 comments on commit 5b99f77

Please sign in to comment.