couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pulkit Singhal <pulkitsing...@gmail.com>
Subject Re: How to pass id as a query parameter to an Update Handler
Date Thu, 21 Mar 2013 00:05:12 GMT
Thanks for validating, it really helped to know which was the right one.
I had an incorrect trailing character in my id value. Fixed now :)

On Wed, Mar 20, 2013 at 5:00 PM, Jeff Charette <iomatix@yahoo.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message