modify example to use POST to get generated uuid
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Dec 2010 18:38:20 +0000 (19:38 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Dec 2010 18:38:20 +0000 (19:38 +0100)
This means that you can re-execute example without key collisions
and also provide example how to implement simple queues

README

diff --git a/README b/README
index b7af6eb..4dd9f76 100644 (file)
--- a/README
+++ b/README
@@ -93,7 +93,8 @@ CouchDB examples:
 
        $ ./couchdb-trigger.pl http://localhost:5984/demo trigger/shell.pm
 
-       $ curl -X PUT http://localhost:5984/demo/t1 -d '{"trigger":{"command":"notify-send CouchDB t1"}}'
+       $ curl -X POST http://localhost:5984/demo/ -H 'Content-type:application/json' -d \
+               '{"trigger":{"command":"notify-send \"CouchDB trigger notify example\""}}'
 
 
        couchdb-external-kinosearch.pl - external searcher for KinoSearch indexes