incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damien Katz <>
Subject Re: PUT and rev query string
Date Mon, 11 May 2009 21:12:51 GMT

On May 11, 2009, at 4:56 PM, Brian Candler wrote:

> I notice that:
> * DELETE lets you specify ...?rev=xxxx as part of the URL

I did it this way so don't have have to put the _rev in a json body of  
the DELETE request.

> * But PUT doesn't (it seems to ignore it)

PUT and POST, you put the _rev in the json object.


> * Both of them let you use an If-Match: xxxx header instead
> I was just wondering if it's intentional that PUT doesn't honour ? 
> rev=xxxx.
> Admittedly, if it did, there would then be *three* different ways of
> specifying the same thing (including _rev in the JSON body). However  
> it's
> often more convenient to add a query string than to add an extra  
> header,
> and it seems a bit inconsistent at the moment.
> This isn't a big problem for me, but just thought it was worth a  
> mention.
> Regards,
> Brian.

View raw message