Merge pull request #6649 from vieux/fix_api_return_codes_start_stop

return 304 is status isn't modified in start and stop
This commit is contained in:
Tibor Vass
2014-06-25 19:10:19 -04:00
5 changed files with 58 additions and 12 deletions
@@ -21,7 +21,7 @@ page_keywords: API, Docker, rcli, REST, documentation
The current version of the API is v1.13
Calling `/images/<name>/insert` is the same as calling
`/v1.12/images/<name>/insert`.
`/v1.13/images/<name>/insert`.
You can still call an old version of the API using
`/v1.12/images/<name>/insert`.
@@ -38,6 +38,12 @@ You can still call an old version of the API using
`Sockets` parameter added to the `/info` endpoint listing all the sockets the
daemon is configured to listen on.
`POST /containers/(name)/start`
`POST /containers/(name)/stop`
**New!**
`start` and `stop` will now return 304 if the container's status is not modified
## v1.12
### Full Documentation
@@ -429,6 +429,7 @@ Start the container `id`
Status Codes:
- **204** – no error
- **304** – container already started
- **404** – no such container
- **500** – server error
@@ -455,6 +456,7 @@ Stop the container `id`
Status Codes:
- **204** – no error
- **304** – container already stopped
- **404** – no such container
- **500** – server error