Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@fosiki.com> (github: SvenDowideit)
| ... | ... |
@@ -127,83 +127,83 @@ entry for each repo/tag on an image, each image is only represented |
| 127 | 127 |
once, with a nested attribute indicating the repo/tags that apply to |
| 128 | 128 |
that image. |
| 129 | 129 |
|
| 130 |
- Instead of: |
|
| 131 |
- |
|
| 132 |
- HTTP/1.1 200 OK |
|
| 133 |
- Content-Type: application/json |
|
| 134 |
- |
|
| 135 |
- [ |
|
| 136 |
- {
|
|
| 137 |
- "VirtualSize": 131506275, |
|
| 138 |
- "Size": 131506275, |
|
| 139 |
- "Created": 1365714795, |
|
| 140 |
- "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", |
|
| 141 |
- "Tag": "12.04", |
|
| 142 |
- "Repository": "ubuntu" |
|
| 143 |
- }, |
|
| 144 |
- {
|
|
| 145 |
- "VirtualSize": 131506275, |
|
| 146 |
- "Size": 131506275, |
|
| 147 |
- "Created": 1365714795, |
|
| 148 |
- "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", |
|
| 149 |
- "Tag": "latest", |
|
| 150 |
- "Repository": "ubuntu" |
|
| 151 |
- }, |
|
| 152 |
- {
|
|
| 153 |
- "VirtualSize": 131506275, |
|
| 154 |
- "Size": 131506275, |
|
| 155 |
- "Created": 1365714795, |
|
| 156 |
- "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", |
|
| 157 |
- "Tag": "precise", |
|
| 158 |
- "Repository": "ubuntu" |
|
| 159 |
- }, |
|
| 160 |
- {
|
|
| 161 |
- "VirtualSize": 180116135, |
|
| 162 |
- "Size": 24653, |
|
| 163 |
- "Created": 1364102658, |
|
| 164 |
- "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 165 |
- "Tag": "12.10", |
|
| 166 |
- "Repository": "ubuntu" |
|
| 167 |
- }, |
|
| 168 |
- {
|
|
| 169 |
- "VirtualSize": 180116135, |
|
| 170 |
- "Size": 24653, |
|
| 171 |
- "Created": 1364102658, |
|
| 172 |
- "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 173 |
- "Tag": "quantal", |
|
| 174 |
- "Repository": "ubuntu" |
|
| 175 |
- } |
|
| 176 |
- ] |
|
| 177 |
- |
|
| 178 |
- The returned json looks like this: |
|
| 179 |
- |
|
| 180 |
- HTTP/1.1 200 OK |
|
| 181 |
- Content-Type: application/json |
|
| 182 |
- |
|
| 183 |
- [ |
|
| 184 |
- {
|
|
| 185 |
- "RepoTags": [ |
|
| 186 |
- "ubuntu:12.04", |
|
| 187 |
- "ubuntu:precise", |
|
| 188 |
- "ubuntu:latest" |
|
| 189 |
- ], |
|
| 190 |
- "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", |
|
| 191 |
- "Created": 1365714795, |
|
| 192 |
- "Size": 131506275, |
|
| 193 |
- "VirtualSize": 131506275 |
|
| 194 |
- }, |
|
| 195 |
- {
|
|
| 196 |
- "RepoTags": [ |
|
| 197 |
- "ubuntu:12.10", |
|
| 198 |
- "ubuntu:quantal" |
|
| 199 |
- ], |
|
| 200 |
- "ParentId": "27cf784147099545", |
|
| 201 |
- "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 202 |
- "Created": 1364102658, |
|
| 203 |
- "Size": 24653, |
|
| 204 |
- "VirtualSize": 180116135 |
|
| 205 |
- } |
|
| 206 |
- ] |
|
| 130 |
+Instead of: |
|
| 131 |
+ |
|
| 132 |
+ HTTP/1.1 200 OK |
|
| 133 |
+ Content-Type: application/json |
|
| 134 |
+ |
|
| 135 |
+ [ |
|
| 136 |
+ {
|
|
| 137 |
+ "VirtualSize": 131506275, |
|
| 138 |
+ "Size": 131506275, |
|
| 139 |
+ "Created": 1365714795, |
|
| 140 |
+ "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", |
|
| 141 |
+ "Tag": "12.04", |
|
| 142 |
+ "Repository": "ubuntu" |
|
| 143 |
+ }, |
|
| 144 |
+ {
|
|
| 145 |
+ "VirtualSize": 131506275, |
|
| 146 |
+ "Size": 131506275, |
|
| 147 |
+ "Created": 1365714795, |
|
| 148 |
+ "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", |
|
| 149 |
+ "Tag": "latest", |
|
| 150 |
+ "Repository": "ubuntu" |
|
| 151 |
+ }, |
|
| 152 |
+ {
|
|
| 153 |
+ "VirtualSize": 131506275, |
|
| 154 |
+ "Size": 131506275, |
|
| 155 |
+ "Created": 1365714795, |
|
| 156 |
+ "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", |
|
| 157 |
+ "Tag": "precise", |
|
| 158 |
+ "Repository": "ubuntu" |
|
| 159 |
+ }, |
|
| 160 |
+ {
|
|
| 161 |
+ "VirtualSize": 180116135, |
|
| 162 |
+ "Size": 24653, |
|
| 163 |
+ "Created": 1364102658, |
|
| 164 |
+ "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 165 |
+ "Tag": "12.10", |
|
| 166 |
+ "Repository": "ubuntu" |
|
| 167 |
+ }, |
|
| 168 |
+ {
|
|
| 169 |
+ "VirtualSize": 180116135, |
|
| 170 |
+ "Size": 24653, |
|
| 171 |
+ "Created": 1364102658, |
|
| 172 |
+ "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 173 |
+ "Tag": "quantal", |
|
| 174 |
+ "Repository": "ubuntu" |
|
| 175 |
+ } |
|
| 176 |
+ ] |
|
| 177 |
+ |
|
| 178 |
+The returned json looks like this: |
|
| 179 |
+ |
|
| 180 |
+ HTTP/1.1 200 OK |
|
| 181 |
+ Content-Type: application/json |
|
| 182 |
+ |
|
| 183 |
+ [ |
|
| 184 |
+ {
|
|
| 185 |
+ "RepoTags": [ |
|
| 186 |
+ "ubuntu:12.04", |
|
| 187 |
+ "ubuntu:precise", |
|
| 188 |
+ "ubuntu:latest" |
|
| 189 |
+ ], |
|
| 190 |
+ "Id": "8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c", |
|
| 191 |
+ "Created": 1365714795, |
|
| 192 |
+ "Size": 131506275, |
|
| 193 |
+ "VirtualSize": 131506275 |
|
| 194 |
+ }, |
|
| 195 |
+ {
|
|
| 196 |
+ "RepoTags": [ |
|
| 197 |
+ "ubuntu:12.10", |
|
| 198 |
+ "ubuntu:quantal" |
|
| 199 |
+ ], |
|
| 200 |
+ "ParentId": "27cf784147099545", |
|
| 201 |
+ "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 202 |
+ "Created": 1364102658, |
|
| 203 |
+ "Size": 24653, |
|
| 204 |
+ "VirtualSize": 180116135 |
|
| 205 |
+ } |
|
| 206 |
+ ] |
|
| 207 | 207 |
|
| 208 | 208 |
`GET /images/viz` |
| 209 | 209 |
|