couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: delete Docs
Date Tue, 06 Apr 2010 14:15:35 GMT

On 6 Apr 2010, at 09:53, wolfgang haefelinger wrote:
>> and indeed couchdb-python uses this :
>> 
>>        status, headers, data = self.resource.head(id)
>>        self.resource.delete_json(id, rev=headers['etag'].strip('"'))
> 
> Strange. Wouldn't we expect that deleting a resource is independent
> from its representation, would we?

No we wouldn't :) — When writing, you need to prove that you don't
accidentally overwrite anybody else's data. This is not a REST but
a CouchDB constraint, but it doesn't violate REST really. Also,
deleting data is bad, mmkay :)

Cheers
Jan
--


Mime
View raw message