mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #26258 from mstanleyjones/25625_swarm_init_return_value
Add response to swarm/init example (fixes #25625
This commit is contained in:
commit
d4e173fc34
1 changed files with 7 additions and 3 deletions
|
@ -4142,7 +4142,7 @@ Inspect swarm
|
||||||
|
|
||||||
`POST /swarm/init`
|
`POST /swarm/init`
|
||||||
|
|
||||||
Initialize a new swarm
|
Initialize a new swarm. The body of the HTTP response includes the node ID.
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
|
@ -4164,8 +4164,12 @@ Initialize a new swarm
|
||||||
**Example response**:
|
**Example response**:
|
||||||
|
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
Content-Length: 0
|
Content-Length: 28
|
||||||
Content-Type: text/plain; charset=utf-8
|
Content-Type: application/json
|
||||||
|
Date: Thu, 01 Sep 2016 21:49:13 GMT
|
||||||
|
Server: Docker/1.12.0 (linux)
|
||||||
|
|
||||||
|
"7v2t30z9blmxuhnyo6s4cpenp"
|
||||||
|
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue