Re: diff + HTTP PATCH == wrong?
Steve Klabnik <[email protected]>
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <CABL+ZB4zdaTL8FHWCF=mZByVcMH4SP0-QxB+UfqAEiCu=7BOeg@mail.gmail.com> |
Diff formats get used with patch because you are required to: > The PATCH method requests that a set of changes described in the > request entity be applied to the resource identified by the Request- > URI. The set of changes is represented in a format called a "patch > document" identified by a media type. > IMO PUT should be use. PUT requires a full replacement, which makes it not appropriate for a diff. (unless you have a resource that's a diff, eg, https://github.com/rails/rails/commit/b1d7283b2ac6763973e1a64475fc1c279cec8775.diff