Permalink
Browse files

updated README.md

  • Loading branch information...
1 parent c503ca9 commit 70f915619235d367ebea4e66252b695f2e1b6a51 @scalabl3 committed Nov 6, 2012
Showing with 18 additions and 15 deletions.
  1. +2 −6 README.md
  2. +16 −9 xdcr.rb
View
@@ -32,17 +32,13 @@ $ ruby xdcr.rb
**WORKING**
- /pools (GET)
-
-**FAILING**
-
- /pools/default (GET)
-
-**NOT DONE**
-
- /pools/default/buckets (GET)
- /pools/default/buckets/{bucket} (GET)
- /{database} (HEAD, GET)
- /{database}/{docid} (GET)
+
+**NOT POSTING NEED TO CHECK**
- /{database}/_ensure_full_commit (POST)
- /{database}/_revs_diff (POST)
- /{database}/_bulk_docs (POST)
View
@@ -79,7 +79,8 @@
5.times { puts }
puts 'GET requested /pools/default/buckets'
-
+ puts params.inspect
+
out = [
{
:bucketCapabilities => [ "couchapi" ],
@@ -94,12 +95,12 @@
:serverList => [ "#{XDCR_RECEIVER}:#{XDCR_PORT}" ],
:vBucketMap => VBucketMap
},
- :uuid => "00000000000000000000000000000000",
- :uri => "/pools/default/buckets/#{XDCR_BUCKET}?bucket_uuid=00000000000000000000000000000000"
+ :uuid => UUID_BUCKET,
+ :uri => "/pools/default/buckets/#{XDCR_BUCKET}?bucket_uuid=#{UUID_BUCKET}"
}
]
- puts out.to_json
+ #puts out.to_json
out.to_json
end
@@ -127,12 +128,12 @@
:serverList => [ "#{XDCR_RECEIVER}:#{XDCR_PORT}" ],
:vBucketMap => vBucketMap
},
- :uuid => "00000000000000000000000000000000",
- :uri => "/pools/default/buckets/#{XDCR_BUCKET}?bucket_uuid=00000000000000000000000000000000"
+ :uuid => UUID_BUCKET,
+ :uri => "/pools/default/buckets/#{XDCR_BUCKET}?bucket_uuid=#{UUID_BUCKET}"
}
]
- puts out.to_json
+ #puts out.to_json
out.to_json
end
@@ -163,13 +164,15 @@
-get '/:database/:docid' do #(GET)
+get '/:database/:vbucket;:uuid/' do #(GET)
require_basic_auth
content_type :json
5.times { puts }
- puts "GET requested [database] /#{params[:database]}/#{params[:docid]}"
+ puts "GET requested [database] /#{params[:database]}/#{params[:vbucket]};#{:uuid}"
+ puts params.inspect
+
if params[:database] == XDCR_BUCKET
status 200
nil
@@ -187,6 +190,7 @@
content_type :json
5.times { puts }
+ puts params.inspect
puts "POST requested [database] /#{params[:database]}/_ensure_full_commit"
status 201
@@ -204,6 +208,7 @@
content_type :json
5.times { puts }
+ puts params.inspect
puts "POST requested [database] /#{params[:database]}/_revs_diff"
status 201
@@ -218,6 +223,8 @@
content_type :json
5.times { puts }
+ puts params.inspect
+ puts params[:data].inspect if params[:data]
puts "POST requested [database] /#{params[:database]}/_bulk_docs"
status 201

0 comments on commit 70f9156

Please sign in to comment.