From 002eb1558a96f61b1f33c916f763c670a13446cf Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Sat, 13 Jul 2013 19:35:58 -0700 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1e1282441..b94e13190 100644 --- a/README.md +++ b/README.md @@ -205,19 +205,19 @@ We already have `/foo/foo=barbar` We create another one `/foo/foo_dir/foo=barbarbar` ```sh -http://127.0.0.1:4001/v1/keys/foo/foo_dir/bar -d value=barbarbar +curl http://127.0.0.1:4001/v1/keys/foo/foo_dir/bar -d value=barbarbar ``` Let us list them next. ```sh -curl http://127.0.0.1:4001/v1/list/foo/ +curl http://127.0.0.1:4001/v1/get/foo/ ``` -We should see the response as +We should see the response as an array of items ```json -{"Key":"foo","Value":"barbar","Type":"f"} {"Key":"foo_dir","Value":".","Type":"d"} +[{"action":"GET","key":"/foo/foo","value":"barbar","index":10},{"action":"GET","key":"/foo/foo_dir","dir":true,"index":10}] ``` which meas `foo=barbar` is a key-value pair under `/foo` and `foo_dir` is a directory.