Skip to content

Instantly share code, notes, and snippets.

@binarytemple
Last active August 29, 2015 14:03
Show Gist options
  • Save binarytemple/03599b8f29f4b19cc3f1 to your computer and use it in GitHub Desktop.
Save binarytemple/03599b8f29f4b19cc3f1 to your computer and use it in GitHub Desktop.

Curl siblings creation and listing example

curl -X PUT -H "Content-Type: application/json" -d '{"props":{"allow_mult":true}}' http://127.0.0.1:8098/buckets/sibling/props
curl -d 'test1' -H "Content-Type:text/plain" http://127.0.0.1:8098/buckets/sibling/keys/test1
curl -d 'test2' -H "Content-Type:text/plain" http://127.0.0.1:8098/buckets/sibling/keys/test1
curl -d 'test3' -H "Content-Type: text/plain" http://127.0.0.1:8098/buckets/sibling/keys/test1
curl -v http://127.0.0.1:8098/buckets/sibling/keys/test1 |  awk '/Siblings/{next}{print $0}' | while read i; do curl -v "http://127.0.0.1:8098/buckets/sibling/keys/test1?vtag=$i";echo; done | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment