Update the doc for remote-api

This commit is contained in:
Guillaume J. Charmes 2013-05-09 22:29:12 -07:00
parent 1941c79195
commit 9897e78e32
1 changed files with 8 additions and 9 deletions

View File

@ -20,7 +20,7 @@ Docker Remote API
List containers List containers
*************** ***************
.. http:get:: /containers .. http:get:: /containers/ps
List containers List containers
@ -28,7 +28,7 @@ List containers
.. sourcecode:: http .. sourcecode:: http
GET /containers?trunc_cmd=0&all=1&only_ids=0&before=8dfafdbc3a40 HTTP/1.1 GET /containers/ps?trunc_cmd=0&all=1&only_ids=0&before=8dfafdbc3a40 HTTP/1.1
**Example response**: **Example response**:
@ -81,7 +81,7 @@ List containers
Create a container Create a container
****************** ******************
.. http:post:: /containers .. http:post:: /containers/create
Create a container Create a container
@ -89,7 +89,7 @@ Create a container
.. sourcecode:: http .. sourcecode:: http
POST /containers HTTP/1.1 POST /containers/create HTTP/1.1
Content-Type: application/json Content-Type: application/json
{ {
@ -431,7 +431,7 @@ Wait a container
Remove a container Remove a container
******************* *******************
.. http:delete:: /container/(id) .. http:delete:: /containers/(id)
Remove the container ``id`` from the filesystem Remove the container ``id`` from the filesystem
@ -459,7 +459,6 @@ Remove a container
List Images List Images
*********** ***********
.. http:get:: /images
.. http:get:: /images/(format) .. http:get:: /images/(format)
List images ``format`` could be json or viz (json default) List images ``format`` could be json or viz (json default)
@ -533,7 +532,7 @@ List Images
Create an image Create an image
*************** ***************
.. http:post:: /images .. http:post:: /images/create
Create an image, either by pull it from the registry or by importing it Create an image, either by pull it from the registry or by importing it
@ -541,7 +540,7 @@ Create an image
.. sourcecode:: http .. sourcecode:: http
POST /images?fromImage=base HTTP/1.1 POST /images/create?fromImage=base HTTP/1.1
**Example response**: **Example response**:
@ -641,7 +640,7 @@ Inspect an image
Get the history of an image Get the history of an image
*************************** ***************************
.. http:get:: /images/(name) .. http:get:: /images/(name)/history
Return the history of the image ``name`` Return the history of the image ``name``