From: Dobrica Pavlinusic Date: Thu, 9 Dec 2010 18:38:20 +0000 (+0100) Subject: modify example to use POST to get generated uuid X-Git-Url: http://git.rot13.org/?p=angular-mojolicious.git;a=commitdiff_plain;h=efdc150557843150cd7d4f0a160339d4ef8f0131 modify example to use POST to get generated uuid This means that you can re-execute example without key collisions and also provide example how to implement simple queues --- diff --git a/README b/README index b7af6eb..4dd9f76 100644 --- 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