Can be used to "do stuff" with documents as they are streamed through XDCR to Sinatra. Still a work in progress...
gem 'sinatra'
gem 'sinatra-basicauth'
gem 'json'
gem 'active_support' # for generating UUID's
$ git clone git@github.com:scalabl3/xdcr-sinatra.git
$ cd xdcr-sinatra
$ ruby xdcr.rb
- In Couchbase Web Admin, click on XDCR Tab
- Click on Create Cluster Reference Button
- Create a name, and Add host and port (i.e. 127.0.0.1:4567)
- Enter your u: Administrator p: [your password]
- Click Done
Right now not everything is working for the Cluster Reference to work all the way through the Registration Process
WORKING
- /pools (GET)
- /pools/default (GET)
- /pools/default/buckets (GET)
- /pools/default/buckets/{bucket} (GET)
- /{database} (HEAD, GET)
- /{database}/{vbucket};{uuid}
- /{database}/master/{vbucket};{uuid}
- /{database}/{docid} (GET)
- /{database}/_ensure_full_commit (POST)
- /{database}/_revs_diff (POST)
- /{database}/_bulk_docs (POST)