Re: diff + HTTP PATCH == wrong?

Philippe Rathé <[email protected]>
Newsgroups gmane.comp.web.services.rest
Message-ID <CAE-VBsAQXahfhhhtoMVqOzovdzwGPp1GnvA=1C-KQ+LS8=R3=w@mail.gmail.com>
On Thu, Jul 26, 2012 at 12:04 PM, Steve Klabnik <[email protected]> wrote:
> PUT requires a full replacement, which makes it not appropriate for a diff

My point is that a diff entity if it contains an hyperlink to the
original resource via let's say an "original" link relation can stand
for a complete representation.

Everything is there, e.g. the resource is represented by applicable
content to an original representation (not necessarily the eventual
PUT URI, nor the context URI). The  instructions and content (the
diff) media type and the "original" link relation would be registered.
I did not meant the representation to only holds the applicable
content without the "original" link relation. The URI of the
"original" probably would most of the time be the same as the resource
URI (PUT URI).

So now with the link relation to the original resource, I don't see
how a "diff" express as so can still be partial content? Quite compact
yes. Different from the resource yes.

Still disagree?

-- 
Philippe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.