Merge pull request #1955 from coreos/doc-cleanup

docs: fix port in peer URLs
release-2.0
Jonathan Boulle 2014-12-17 11:01:27 -08:00
commit f0b9ad3863
1 changed files with 5 additions and 5 deletions

View File

@ -59,21 +59,21 @@ If the POST body is malformed an HTTP 400 will be returned. If the member exists
```
POST /v2/members HTTP/1.1
{"peerURLs": ["http://10.0.0.10:2379"]}
{"peerURLs": ["http://10.0.0.10:2380"]}
```
### Example
```sh
curl http://10.0.0.10:2379/v2/members -XPOST \
-H "Content-Type: application/json" -d '{"peerURLs":["http://10.0.0.10:2379"]}'
-H "Content-Type: application/json" -d '{"peerURLs":["http://10.0.0.10:2380"]}'
```
```json
{
"id": "3777296169",
"peerURLs": [
"http://10.0.0.10:2379"
"http://10.0.0.10:2380"
]
}
```
@ -108,12 +108,12 @@ If the POST body is malformed an HTTP 400 will be returned. If the member does n
```
PUT /v2/members/<id> HTTP/1.1
{"peerURLs": ["http://10.0.0.10:2379"]}
{"peerURLs": ["http://10.0.0.10:2380"]}
```
#### Example
```sh
curl http://10.0.0.10:2379/v2/members/272e204152 -XPUT \
-H "Content-Type: application/json" -d '{"peerURLs":["http://10.0.0.10:12379"]}'
-H "Content-Type: application/json" -d '{"peerURLs":["http://10.0.0.10:2380"]}'
```