couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils Breunese <n.breun...@vpro.nl>
Subject Re: How to pass id as a query parameter to an Update Handler
Date Thu, 21 Mar 2013 12:15:01 GMT
Pulkit Singhal <pulkitsinghal@gmail.com> wrote:

> How can I pass the document id to an update handler via a browser request?
> I've tried:
> http://127.0.0.1:5984/
> <my_database>/_design/<my_designdoc>/_update/in-place-query/<mydocId>
> http://127.0.0.1:5984/
> <my_database>/_design/<my_designdoc>/_update/in-place-query?id=<mydocId>
> http://127.0.0.1:5984/
> <my_database>/_design/<my_designdoc>/_update/in-place-query?_id=<mydocId>
> 
> But I never receive a non-nil document in my update handler.
> 
> What am I doing wrong?

Does http://wiki.apache.org/couchdb/Document_Update_Handlers help?

Nils.

Mime
View raw message