couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <...@jsonified.com>
Subject Re: CouchDB: POST Data with Update Handler
Date Mon, 18 Nov 2013 14:14:42 GMT
On 18. November 2013 at 15:05:05, Hank Knight (hknight555@gmail.com) wrote:
>  
> I understand that I can pass information using an update handler  
> like this:
>  
> http://127.0.0.1:5984/my_database/_design/my_designdoc/_update/in-place-query/mydocId?field=title&value=test
 
>  
> Is there a way to use POST data with an update handler?
>  
> I would like to post this data:
> {
> "hello": "world",
> "x": 123
> }
>  
> through an update handler.
>  
> Thanks.
>  

Yes.

http://wiki.apache.org/couchdb/Working_with_Forms
https://couchdb.readthedocs.org/en/latest/couchapp/ddocs.html#update-functions

Note for POST you can’t use the docname, for that use PUT instead.

--  
Dave Cottlehuber
Sent with Airmail(http://airmailapp.com/tracking)

Mime
View raw message