From 718d5d051eebba8450036ddb6ca8fdc05db1f5d6 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Thu, 6 Jul 2017 15:45:25 +0000 Subject: [PATCH] Fix the sample responses in API docs Change-Id: Ia6f9dc20f37ac7f7ffafc952c5e93c4e74f96c06 --- .../samples/container-get-all-resp.json | 93 ++++++++++--------- .../source/samples/container-update-resp.json | 2 +- 2 files changed, 49 insertions(+), 46 deletions(-) diff --git a/api-ref/source/samples/container-get-all-resp.json b/api-ref/source/samples/container-get-all-resp.json index 5fae6ed36..2417b6edf 100644 --- a/api-ref/source/samples/container-get-all-resp.json +++ b/api-ref/source/samples/container-get-all-resp.json @@ -1,49 +1,52 @@ { - "addresses": { - "public": [{ - "version": 4, - "addr": "172.24.4.3", - "port": "4b077255-9b4d-4068-b24f-b89594f870c2" - }, { - "version": 6, - "addr": "2001:db8::9", - "port": "4b077255-9b4d-4068-b24f-b89594f870c2" - }] - }, - "links": [{ - "href": "http://openstack.example.com/v1/containers/b0694d40-70af-4488-b104-10f66b593347", - "rel": "self" - }, - {"href": "http://openstack.example.com/containers/b0694d40-70af-4488-b104-10f66b593347", "rel": "bookmark"} + "containers": [ + { + "addresses": { + "public": [{ + "version": 4, + "addr": "172.24.4.3", + "port": "4b077255-9b4d-4068-b24f-b89594f870c2" + }, { + "version": 6, + "addr": "2001:db8::9", + "port": "4b077255-9b4d-4068-b24f-b89594f870c2" + }] + }, + "links": [{ + "href": "http://openstack.example.com/v1/containers/b0694d40-70af-4488-b104-10f66b593347", + "rel": "self" + }, + {"href": "http://openstack.example.com/containers/b0694d40-70af-4488-b104-10f66b593347", "rel": "bookmark"} + ], + "image": "ubuntu", + "labels": { + "app": "hello" + }, + "security_groups": [], + "image_pull_policy": "always", + "uuid": "b0694d40-70af-4488-b104-10f66b593347", + "hostname": "zun-sandbox-5812822d-6794-4839-85c0-1c01665c0d48", + "environment": { + "foo": "bar" + }, + "memory": "500M", + "status": "Stopped", + "workdir": "/home/ubuntu", + "status_detail": "Exited(0) 10 mins ago ", + "host": "ubuntu", + "image_driver": "docker", + "task_state": null, + "status_reason": null, + "name": "test", + "restart_policy": { + "MaximumRetryCount": "0", + "Name": "no" + }, + "ports": [], + "command": "/bin/sh -c 'echo hello'", + "cpu": 2.0, + "interactive": false + } ], - "image": "ubuntu", - "labels": { - "app": "hello" - }, - "security_groups": [], - "image_pull_policy": "always", - "uuid": "b0694d40-70af-4488-b104-10f66b593347", - "hostname": "zun-sandbox-5812822d-6794-4839-85c0-1c01665c0d48", - "environment": { - "foo": "bar" - }, - "memory": "500M", - "status": "Stopped", - "workdir": "/home/ubuntu", - "status_detail": "Exited(0) 10 mins ago ", - "host": "ubuntu", - "image_driver": "docker", - "task_state": null, - "status_reason": null, - "name": "test", - "restart_policy": { - "MaximumRetryCount": "0", - "Name": "no" - }, - "ports": [], - "command": "/bin/sh -c 'echo hello'", - "cpu": 2.0, - "interactive": false - }], "next": null } diff --git a/api-ref/source/samples/container-update-resp.json b/api-ref/source/samples/container-update-resp.json index 64ef43f97..a14775381 100644 --- a/api-ref/source/samples/container-update-resp.json +++ b/api-ref/source/samples/container-update-resp.json @@ -1,5 +1,5 @@ { -"addresses": { + "addresses": { "public": [{ "version": 4, "addr": "172.24.4.3",