incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Charette <ioma...@yahoo.com>
Subject Re: How to pass id as a query parameter to an Update Handler
Date Thu, 21 Mar 2013 00:00:32 GMT
First one is correct.  Check your design doc has the update handler.  Also make sure you are
doing a post.

Jeff Charette | Principal 
We Are Charette
web / identity / packaging

m  415.298.2707
w  wearecharette.com
e   jeffrey@wearecharette.com

On Mar 20, 2013, at 7:56 PM, 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?

Mime
View raw message