{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/22546","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/22546/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/22546/comments","events_url":"https://api.github.com/repos/docker/docker/issues/22546/events","html_url":"https://github.com/docker/docker/issues/22546","id":153375424,"number":22546,"title":"API Container Request returns named objects rather than array of objects ","user":{"login":"ncrmro","id":8276365,"avatar_url":"https://avatars.githubusercontent.com/u/8276365?v=3","gravatar_id":"","url":"https://api.github.com/users/ncrmro","html_url":"https://github.com/ncrmro","followers_url":"https://api.github.com/users/ncrmro/followers","following_url":"https://api.github.com/users/ncrmro/following{/other_user}","gists_url":"https://api.github.com/users/ncrmro/gists{/gist_id}","starred_url":"https://api.github.com/users/ncrmro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncrmro/subscriptions","organizations_url":"https://api.github.com/users/ncrmro/orgs","repos_url":"https://api.github.com/users/ncrmro/repos","events_url":"https://api.github.com/users/ncrmro/events{/privacy}","received_events_url":"https://api.github.com/users/ncrmro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-06T04:24:09Z","updated_at":"2016-05-06T21:15:33Z","closed_at":null,"body":"Querying a container looks like this\r\n```JSON\r\n{\r\n    \"Id\": \"6f50c841707d1a2c9e456faecbfe9e7d9174bf5004179506b20d7d9f4c3d806a\",\r\n    \"Names\": [\r\n      \"/big_yalow\"\r\n    ],\r\n    \"Image\": \"mongo\",\r\n    \"ImageID\": \"sha256:ddad4160b92fbfe39698089d72ca6c8907b7d997fd0c5aeafe5a0ade825803f8\",\r\n    \"Command\": \"/entrypoint.sh mongod\",\r\n    \"Created\": 1462167207,\r\n    \"Ports\": [\r\n      {\r\n        \"PrivatePort\": 27017,\r\n        \"Type\": \"tcp\"\r\n      }\r\n    ],\r\n    \"Labels\": {},\r\n    \"Status\": \"Up 3 days\",\r\n    \"HostConfig\": {\r\n      \"NetworkMode\": \"default\"\r\n    },\r\n    \"NetworkSettings\": {\r\n      \"Networks\": {\r\n        \"bridge\": {\r\n          \"IPAMConfig\": null,\r\n          \"Links\": null,\r\n          \"Aliases\": null,\r\n          \"NetworkID\": \"\",\r\n          \"EndpointID\": \"46e04db264b5fd529c7a8f80f59ab1a60ccc82b85821fef66de9e202cf98d323\",\r\n          \"Gateway\": \"172.17.0.1\",\r\n          \"IPAddress\": \"172.17.0.3\",\r\n          \"IPPrefixLen\": 16,\r\n          \"IPv6Gateway\": \"\",\r\n          \"GlobalIPv6Address\": \"\",\r\n          \"GlobalIPv6PrefixLen\": 0,\r\n          \"MacAddress\": \"02:42:ac:11:00:03\"\r\n        },\r\n        \"isolated_nw\": {\r\n          \"IPAMConfig\": null,\r\n          \"Links\": null,\r\n          \"Aliases\": null,\r\n          \"NetworkID\": \"\",\r\n          \"EndpointID\": \"2dc44cc549b09e972dbc86a2a453b77af6bb6a7989e2db5ec87c7d4d61caacd9\",\r\n          \"Gateway\": \"172.20.10.11\",\r\n          \"IPAddress\": \"172.20.10.0\",\r\n          \"IPPrefixLen\": 16,\r\n          \"IPv6Gateway\": \"\",\r\n          \"GlobalIPv6Address\": \"\",\r\n          \"GlobalIPv6PrefixLen\": 0,\r\n          \"MacAddress\": \"02:42:ac:14:0a:00\"\r\n        }\r\n      }\r\n    }\r\n  },\r\n```\r\n\r\nI was hoping we could get something like this.\r\n\r\n```JSON\r\n{\r\n    \"Id\": \"6f50c841707d1a2c9e456faecbfe9e7d9174bf5004179506b20d7d9f4c3d806a\",\r\n    \"Names\": [\r\n      \"/big_yalow\"\r\n    ],\r\n    \"Image\": \"mongo\",\r\n    \"ImageID\": \"sha256:ddad4160b92fbfe39698089d72ca6c8907b7d997fd0c5aeafe5a0ade825803f8\",\r\n    \"Command\": \"/entrypoint.sh mongod\",\r\n    \"Created\": 1462167207,\r\n    \"Ports\": [\r\n      {\r\n        \"PrivatePort\": 27017,\r\n        \"Type\": \"tcp\"\r\n      }\r\n    ],\r\n    \"Labels\": {},\r\n    \"Status\": \"Up 3 days\",\r\n    \"HostConfig\": {\r\n      \"NetworkMode\": \"default\"\r\n    },\r\n    \"NetworkSettings\": {\r\n      \"Networks\": [\r\n {\r\n          \"Name\": \"bridge\",\r\n          \"IPAMConfig\": null,\r\n          \"Links\": null,\r\n          \"Aliases\": null,\r\n          \"NetworkID\": \"\",\r\n          \"EndpointID\": \"46e04db264b5fd529c7a8f80f59ab1a60ccc82b85821fef66de9e202cf98d323\",\r\n          \"Gateway\": \"172.17.0.1\",\r\n          \"IPAddress\": \"172.17.0.3\",\r\n          \"IPPrefixLen\": 16,\r\n          \"IPv6Gateway\": \"\",\r\n          \"GlobalIPv6Address\": \"\",\r\n          \"GlobalIPv6PrefixLen\": 0,\r\n          \"MacAddress\": \"02:42:ac:11:00:03\"\r\n        },\r\n         {\r\n          \"Name\": \"isolated_nw\",\r\n          \"IPAMConfig\": null,\r\n          \"Links\": null,\r\n          \"Aliases\": null,\r\n          \"NetworkID\": \"\",\r\n          \"EndpointID\": \"2dc44cc549b09e972dbc86a2a453b77af6bb6a7989e2db5ec87c7d4d61caacd9\",\r\n          \"Gateway\": \"172.20.10.11\",\r\n          \"IPAddress\": \"172.20.10.0\",\r\n          \"IPPrefixLen\": 16,\r\n          \"IPv6Gateway\": \"\",\r\n          \"GlobalIPv6Address\": \"\",\r\n          \"GlobalIPv6PrefixLen\": 0,\r\n          \"MacAddress\": \"02:42:ac:14:0a:00\"\r\n        }\r\n      ]\r\n    }\r\n  },\r\n```\r\n\r\nThis would making lining the api request using GraphQL much easier as then the schema would be better defined rather than having dynamic object names. I'm looking at just converting the object each time before pushing it to graphQL"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/217560374","html_url":"https://github.com/docker/docker/issues/22546#issuecomment-217560374","issue_url":"https://api.github.com/repos/docker/docker/issues/22546","id":217560374,"user":{"login":"ncrmro","id":8276365,"avatar_url":"https://avatars.githubusercontent.com/u/8276365?v=3","gravatar_id":"","url":"https://api.github.com/users/ncrmro","html_url":"https://github.com/ncrmro","followers_url":"https://api.github.com/users/ncrmro/followers","following_url":"https://api.github.com/users/ncrmro/following{/other_user}","gists_url":"https://api.github.com/users/ncrmro/gists{/gist_id}","starred_url":"https://api.github.com/users/ncrmro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncrmro/subscriptions","organizations_url":"https://api.github.com/users/ncrmro/orgs","repos_url":"https://api.github.com/users/ncrmro/repos","events_url":"https://api.github.com/users/ncrmro/events{/privacy}","received_events_url":"https://api.github.com/users/ncrmro/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T21:15:33Z","updated_at":"2016-05-06T21:15:33Z","body":"Definitely a typo, fixed it now. And yes I'm sure current use cases should be evaluated."}}