Hi,

Bertrand Delacretaz schrieb:
> On Thu, Oct 16, 2008 at 5:14 PM, David Nuescheler <[EMAIL PROTECTED]> wrote:
>> ...anyway, in hind-sight the /xyz/* for the POST is probably not ideal
>> and in my mind should
>> be deprecated in favour of /xyz/ with a trailing slash....

While the .../* form is not deprecated, it is actually now called an
"alternative" way to the more natural form with a trailing slash.

Thus POST-ing to /xyz/ is the same as posting to /xyz/*, that is
creating a new resource below /xyz.

> 
> The problem with not using xyz/* is differentiating between create and
> modify operations.
> 
> If a POST to xyz/ always creates a new node under it, how to you
> update a property on xyz itself?

POST-ing to /xyz/ always creates a new child resource and never modifies
the /xyz resource.

Regards
Felix

> 
> Being able to use PUT would be the answer, but browsers don't do that.
> We could have used HTTP headers to make a POST behave like a PUT, but
> I think the magic star is easier to use from browsers, and more
> visible than a HTTP header.
> 
> So my answer is: we currently use xyz/* as a workaround, to
> differentiate between "create" and "modify" when working with today's
> browsers as clients.
> 
> -Bertrand
> 

Reply via email to