Просмотр исходного кода

Merge pull request #138 from fatih/patch-2

Fix api urls in examples
Brandon Philips 13 лет назад
Родитель
Сommit
8eca7b2ca8
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -356,7 +356,7 @@ Let the join two more nodes to this cluster using the -C argument:
 Get the machines in the cluster:
 Get the machines in the cluster:
 
 
 ```sh
 ```sh
-curl -L http://127.0.0.1:4001/machines
+curl -L http://127.0.0.1:4001/v1/machines
 ```
 ```
 
 
 We should see there are three nodes in the cluster
 We should see there are three nodes in the cluster
@@ -380,7 +380,7 @@ The key of the machine is based on the ```commit index``` when it was added. The
 Also try to get the current leader in the cluster
 Also try to get the current leader in the cluster
 
 
 ```
 ```
-curl -L http://127.0.0.1:4001/leader
+curl -L http://127.0.0.1:4001/v1/leader
 ```
 ```
 The first server we set up should be the leader, if it has not dead during these commands.
 The first server we set up should be the leader, if it has not dead during these commands.
 
 
@@ -409,7 +409,7 @@ curl -L http://127.0.0.1:4002/v1/keys/foo
 A new leader should have been elected.
 A new leader should have been elected.
 
 
 ```
 ```
-curl -L http://127.0.0.1:4001/leader
+curl -L http://127.0.0.1:4001/v1/leader
 ```
 ```
 
 
 ```
 ```