commit | c5b5e4dd63cb612b770861865e2ed27e98246c85 | [log] [tgz] |
---|---|---|
author | Morgan Johnson <johnsolm@us.ibm.com> | Mon Oct 31 09:06:58 2016 -0400 |
committer | Morgan Johnson <johnsolm@us.ibm.com> | Mon Oct 31 09:06:58 2016 -0400 |
tree | 0ce9aebdae2f130a9ec8ba2203a7c0bd0f4b7c7e | |
parent | 2a1ed577d48ef643c73851f78f32897a9fade7e2 [diff] |
adding auth to URL. should support both cloudant and proper version of couch
This is still very much a work-in-progress.
RESTful service to listen for changes to a Cloudant database.
Changes to a Cloudant database can trigger the invocation of an action, passing the action the body of the updated document.
See the scripts directory for examples on how to register a new Cloudant trigger.
The following commands will test the Cloudant trigger service:
cd <bluewhisk_home> gradle distDocker
Follow the instructions in [ansible/README.md][../../../ansible/README.md]
./bin/wsk create HELLOCLOUDANT ./actions/hellocloudant.js ./catalog/providers/cloudantTrigger/scripts/addTestTriggers.sh
./catalog/providers/cloudantTrigger/scripts/addNewDocument.sh
You should see the output from invoking the HELLOCLOUDANT action in the ELK logs.