couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Blakey <antony.bla...@gmail.com>
Subject Re: Please allow _prefix for auto-created _id
Date Sat, 07 Mar 2009 23:22:17 GMT

On 08/03/2009, at 4:41 AM, Chris Anderson wrote:

> Currently it's recommended not to POST new documents without ids to
> CouchDB. Due to HTTP protocol issues this can result in duplicate
> document creation.

I've never really understood this. Wouldn't it mean that all POST  
operations in CouchDB need to be made idempotent by the server because  
they might be erroneously repeated by middleware?

Given that POSTing to a collection, resulting in a response with a  
Location header is a fundamental part of the REST model, how do other  
REST APIS deal with this problem?

Antony Blakey
-------------
CTO, Linkuistics Pty Ltd
Ph: 0438 840 787

If a train station is a place where a train stops, what's a workstation?



Mime
View raw message