Browse code

docs: update docs for API history

The response of hitory API includes more information now.

Signed-off-by: Hu Keping <hukeping@huawei.com>

Hu Keping authored on 2015/07/10 04:22:18
Showing 2 changed files
... ...
@@ -1324,17 +1324,37 @@ Return the history of the image `name`
1324 1324
     HTTP/1.1 200 OK
1325 1325
     Content-Type: application/json
1326 1326
 
1327
-    [
1328
-         {
1329
-                 "Id": "b750fe79269d",
1330
-                 "Created": 1364102658,
1331
-                 "CreatedBy": "/bin/bash"
1332
-         },
1333
-         {
1334
-                 "Id": "27cf78414709",
1335
-                 "Created": 1364068391,
1336
-                 "CreatedBy": ""
1337
-         }
1327
+    [    
1328
+        {    
1329
+            "Id": "3db9c44f45209632d6050b35958829c3a2aa256d81b9a7be45b362ff85c54710",
1330
+            "Created": 1398108230,
1331
+            "CreatedBy": "/bin/sh -c #(nop) ADD file:eb15dbd63394e063b805a3c32ca7bf0266ef64676d5a6fab4801f2e81e2a5148 in /",
1332
+            "Tags": [
1333
+                "ubuntu:lucid",
1334
+                "ubuntu:10.04"
1335
+            ],   
1336
+            "Size": 182964289,
1337
+            "Comment": ""
1338
+        },   
1339
+        {    
1340
+            "Id": "6cfa4d1f33fb861d4d114f43b25abd0ac737509268065cdfd69d544a59c85ab8",
1341
+            "Created": 1398108222,
1342
+            "CreatedBy": "/bin/sh -c #(nop) MAINTAINER Tianon Gravi <admwiggin@gmail.com> - mkimage-debootstrap.sh -i iproute,iputils-ping,ubuntu-minimal -t lucid.tar.xz lucid http://archive.ubuntu.com/ubuntu/",
1343
+            "Tags": null,
1344
+            "Size": 0,
1345
+            "Comment": ""
1346
+        },   
1347
+        {    
1348
+            "Id": "511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158",
1349
+            "Created": 1371157430,
1350
+            "CreatedBy": "",
1351
+            "Tags": [
1352
+                "scratch12:latest",
1353
+                "scratch:latest"
1354
+            ],   
1355
+            "Size": 0,
1356
+            "Comment": "Imported from -"
1357
+        }    
1338 1358
     ]
1339 1359
 
1340 1360
 Status Codes:
... ...
@@ -1319,16 +1319,36 @@ Return the history of the image `name`
1319 1319
     Content-Type: application/json
1320 1320
 
1321 1321
     [
1322
-         {
1323
-                 "Id": "b750fe79269d",
1324
-                 "Created": 1364102658,
1325
-                 "CreatedBy": "/bin/bash"
1326
-         },
1327
-         {
1328
-                 "Id": "27cf78414709",
1329
-                 "Created": 1364068391,
1330
-                 "CreatedBy": ""
1331
-         }
1322
+        {
1323
+            "Id": "3db9c44f45209632d6050b35958829c3a2aa256d81b9a7be45b362ff85c54710",
1324
+            "Created": 1398108230,
1325
+            "CreatedBy": "/bin/sh -c #(nop) ADD file:eb15dbd63394e063b805a3c32ca7bf0266ef64676d5a6fab4801f2e81e2a5148 in /",
1326
+            "Tags": [
1327
+                "ubuntu:lucid",
1328
+                "ubuntu:10.04"
1329
+            ],
1330
+            "Size": 182964289,
1331
+            "Comment": ""
1332
+        },
1333
+        {
1334
+            "Id": "6cfa4d1f33fb861d4d114f43b25abd0ac737509268065cdfd69d544a59c85ab8",
1335
+            "Created": 1398108222,
1336
+            "CreatedBy": "/bin/sh -c #(nop) MAINTAINER Tianon Gravi <admwiggin@gmail.com> - mkimage-debootstrap.sh -i iproute,iputils-ping,ubuntu-minimal -t lucid.tar.xz lucid http://archive.ubuntu.com/ubuntu/",
1337
+            "Tags": null,
1338
+            "Size": 0,
1339
+            "Comment": ""
1340
+        },
1341
+        {
1342
+            "Id": "511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158",
1343
+            "Created": 1371157430,
1344
+            "CreatedBy": "",
1345
+            "Tags": [
1346
+                "scratch12:latest",
1347
+                "scratch:latest"
1348
+            ],
1349
+            "Size": 0,
1350
+            "Comment": "Imported from -"
1351
+        }
1332 1352
     ]
1333 1353
 
1334 1354
 Status Codes: