Merge pull request #5401 from SvenDowideit/docs-api-eg-formating

small api doc formatting fixup
This commit is contained in:
James Turnbull 2014-04-25 09:11:46 -04:00
commit ed48608147
1 changed files with 72 additions and 72 deletions

View File

@ -127,83 +127,83 @@ entry for each repo/tag on an image, each image is only represented
once, with a nested attribute indicating the repo/tags that apply to once, with a nested attribute indicating the repo/tags that apply to
that image. that image.
Instead of: Instead of:
HTTP/1.1 200 OK HTTP/1.1 200 OK
Content-Type: application/json Content-Type: application/json
[ [
{ {
"VirtualSize": 131506275, "VirtualSize": 131506275,
"Size": 131506275, "Size": 131506275,
"Created": 1365714795, "Created": 1365714795,
"Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c",
"Tag": "12.04", "Tag": "12.04",
"Repository": "ubuntu" "Repository": "ubuntu"
}, },
{ {
"VirtualSize": 131506275, "VirtualSize": 131506275,
"Size": 131506275, "Size": 131506275,
"Created": 1365714795, "Created": 1365714795,
"Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c",
"Tag": "latest", "Tag": "latest",
"Repository": "ubuntu" "Repository": "ubuntu"
}, },
{ {
"VirtualSize": 131506275, "VirtualSize": 131506275,
"Size": 131506275, "Size": 131506275,
"Created": 1365714795, "Created": 1365714795,
"Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c",
"Tag": "precise", "Tag": "precise",
"Repository": "ubuntu" "Repository": "ubuntu"
}, },
{ {
"VirtualSize": 180116135, "VirtualSize": 180116135,
"Size": 24653, "Size": 24653,
"Created": 1364102658, "Created": 1364102658,
"Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc",
"Tag": "12.10", "Tag": "12.10",
"Repository": "ubuntu" "Repository": "ubuntu"
}, },
{ {
"VirtualSize": 180116135, "VirtualSize": 180116135,
"Size": 24653, "Size": 24653,
"Created": 1364102658, "Created": 1364102658,
"Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc",
"Tag": "quantal", "Tag": "quantal",
"Repository": "ubuntu" "Repository": "ubuntu"
} }
] ]
The returned json looks like this: The returned json looks like this:
HTTP/1.1 200 OK HTTP/1.1 200 OK
Content-Type: application/json Content-Type: application/json
[ [
{ {
"RepoTags": [ "RepoTags": [
"ubuntu:12.04", "ubuntu:12.04",
"ubuntu:precise", "ubuntu:precise",
"ubuntu:latest" "ubuntu:latest"
], ],
"Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c",
"Created": 1365714795, "Created": 1365714795,
"Size": 131506275, "Size": 131506275,
"VirtualSize": 131506275 "VirtualSize": 131506275
}, },
{ {
"RepoTags": [ "RepoTags": [
"ubuntu:12.10", "ubuntu:12.10",
"ubuntu:quantal" "ubuntu:quantal"
], ],
"ParentId": "27cf784147099545", "ParentId": "27cf784147099545",
"Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc",
"Created": 1364102658, "Created": 1364102658,
"Size": 24653, "Size": 24653,
"VirtualSize": 180116135 "VirtualSize": 180116135
} }
] ]
`GET /images/viz` `GET /images/viz`