Reformat /containers/(id)/resize to make it consistent with "Exec Resize" section.

Signed-off-by: Charles Chan <charleswhchan@users.noreply.github.com>
This commit is contained in:
Charles Chan 2015-08-02 12:09:01 -07:00
parent 05529ab584
commit 6cd2d89469
1 changed files with 9 additions and 4 deletions

View File

@ -690,9 +690,9 @@ Status Codes:
### Resize a container TTY
`POST /containers/(id)/resize?h=<height>&w=<width>`
`POST /containers/(id)/resize`
Resize the TTY for container with `id`. You must restart the container for the resize to take effect.
Resize the TTY for container with `id`. The unit is number of characters. You must restart the container for the resize to take effect.
**Example request**:
@ -704,6 +704,11 @@ Resize the TTY for container with `id`. You must restart the container for the
Content-Length: 0
Content-Type: text/plain; charset=utf-8
Query Parameters:
- **h** height of `tty` session
- **w** width
Status Codes:
- **200** no error
@ -2102,12 +2107,12 @@ Status Codes:
`POST /exec/(id)/resize`
Resizes the `tty` session used by the `exec` command `id`.
Resizes the `tty` session used by the `exec` command `id`. The unit is number of characters.
This API is valid only if `tty` was specified as part of creating and starting the `exec` command.
**Example request**:
POST /exec/e90e34656806/resize HTTP/1.1
POST /exec/e90e34656806/resize?h=40&w=80 HTTP/1.1
Content-Type: text/plain
**Example response**: