1.return status code http.StatusNoContent in deleting network when successful

2.modify docker_api_network_test.go
3.modify docker_remote_api_v1.23.md

Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 94c929099fdfd200eda90529ae8d2ed90c8e3c97
Component: engine
This commit is contained in:
allencloud
2016-03-06 00:41:51 +08:00
parent dfd9e32dcf
commit 9810cad289
3 changed files with 13 additions and 6 deletions

View File

@ -3097,7 +3097,7 @@ JSON Parameters:
`POST /networks/(id)/connect`
Connects a container to a network
Connect a container to a network
**Example request**:
@ -3134,7 +3134,7 @@ JSON Parameters:
`POST /networks/(id)/disconnect`
Disconnects a container from a network
Disconnect a container from a network
**Example request**:
@ -3175,11 +3175,11 @@ Instruct the driver to remove the network (`id`).
**Example response**:
HTTP/1.1 200 OK
HTTP/1.1 204 No Content
Status Codes
- **200** - no error
- **204** - no error
- **404** - no such network
- **500** - server error