{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/grid/issues/1448","labels_url":"https://api.github.com/repos/guardian/grid/issues/1448/labels{/name}","comments_url":"https://api.github.com/repos/guardian/grid/issues/1448/comments","events_url":"https://api.github.com/repos/guardian/grid/issues/1448/events","html_url":"https://github.com/guardian/grid/pull/1448","id":116137940,"number":1448,"title":"[WIP] basic tree endpoint for collections hierarchy","user":{"login":"jamesgorrie","id":31692,"avatar_url":"https://avatars.githubusercontent.com/u/31692?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesgorrie","html_url":"https://github.com/jamesgorrie","followers_url":"https://api.github.com/users/jamesgorrie/followers","following_url":"https://api.github.com/users/jamesgorrie/following{/other_user}","gists_url":"https://api.github.com/users/jamesgorrie/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesgorrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesgorrie/subscriptions","organizations_url":"https://api.github.com/users/jamesgorrie/orgs","repos_url":"https://api.github.com/users/jamesgorrie/repos","events_url":"https://api.github.com/users/jamesgorrie/events{/privacy}","received_events_url":"https://api.github.com/users/jamesgorrie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/guardian/grid/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-11-10T16:05:06Z","updated_at":"2015-11-23T12:11:18Z","closed_at":"2015-11-23T12:11:18Z","pull_request":{"url":"https://api.github.com/repos/guardian/grid/pulls/1448","html_url":"https://github.com/guardian/grid/pull/1448","diff_url":"https://github.com/guardian/grid/pull/1448.diff","patch_url":"https://github.com/guardian/grid/pull/1448.patch"},"body":"Getting a little something up so we can start looking at collections - this is to start having the ability to manipulate the visible list to users.\r\n\r\n# API shape\r\n\r\n```JSON\r\n{\r\n    \"data\": {\r\n        \"name\": \"root\",\r\n        \"children\": [\r\n            {\r\n                \"name\": \"g2\",\r\n                \"children\": [\r\n                    {\r\n                        \"name\": \"arts\",\r\n                        \"children\": [],\r\n                        \"data\": {\r\n                            \"path\": [\r\n                                \"g2\",\r\n                                \"arts\"\r\n                            ],\r\n                            \"paradata\": {\r\n                                \"who\": \"things.kings@guardian.co.uk\",\r\n                                \"when\": \"2015-11-11T00:00:00.000+0000\"\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"name\": \"fashion\",\r\n                        \"children\": [],\r\n                        \"data\": {\r\n                            \"path\": [\r\n                                \"g2\",\r\n                                \"fashion\"\r\n                            ],\r\n                            \"paradata\": {\r\n                                \"who\": \"beans.queens@guardian.co.uk\",\r\n                                \"when\": \"2015-12-11T00:00:00.000+0000\"\r\n                            }\r\n                        }\r\n                    }\r\n                ],\r\n                \"data\": {\r\n                    \"path\": [\r\n                        \"g2\",\r\n                        \"arts\"\r\n                    ],\r\n                    \"paradata\": {\r\n                        \"who\": \"things.kings@guardian.co.uk\",\r\n                        \"when\": \"2015-11-11T00:00:00.000+0000\"\r\n                    }\r\n                }\r\n            },\r\n            {\r\n                \"name\": \"obs\",\r\n                \"children\": [\r\n                    {\r\n                        \"name\": \"comment\",\r\n                        \"children\": [],\r\n                        \"data\": {\r\n                            \"path\": [\r\n                                \"obs\",\r\n                                \"comment\"\r\n                            ],\r\n                            \"paradata\": {\r\n                                \"who\": \"beans.queens@guardian.co.uk\",\r\n                                \"when\": \"2015-12-11T00:00:00.000+0000\"\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"name\": \"foodfeat\",\r\n                        \"children\": [],\r\n                        \"data\": {\r\n                            \"path\": [\r\n                                \"obs\",\r\n                                \"foodfeat\"\r\n                            ],\r\n                            \"paradata\": {\r\n                                \"who\": \"beans.queens@guardian.co.uk\",\r\n                                \"when\": \"2015-12-11T00:00:00.000+0000\"\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"name\": \"focus\",\r\n                        \"children\": [],\r\n                        \"data\": {\r\n                            \"path\": [\r\n                                \"obs\",\r\n                                \"focus\"\r\n                            ],\r\n                            \"paradata\": {\r\n                                \"who\": \"beans.queens@guardian.co.uk\",\r\n                                \"when\": \"2015-12-11T00:00:00.000+0000\"\r\n                            }\r\n                        }\r\n                    }\r\n                ],\r\n                \"data\": {\r\n                    \"path\": [\r\n                        \"obs\",\r\n                        \"comment\"\r\n                    ],\r\n                    \"paradata\": {\r\n                        \"who\": \"beans.queens@guardian.co.uk\",\r\n                        \"when\": \"2015-12-11T00:00:00.000+0000\"\r\n                    }\r\n                }\r\n            }\r\n        ]\r\n    }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/guardian/grid/issues/comments/158916664","html_url":"https://github.com/guardian/grid/pull/1448#issuecomment-158916664","issue_url":"https://api.github.com/repos/guardian/grid/issues/1448","id":158916664,"user":{"login":"jamesgorrie","id":31692,"avatar_url":"https://avatars.githubusercontent.com/u/31692?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesgorrie","html_url":"https://github.com/jamesgorrie","followers_url":"https://api.github.com/users/jamesgorrie/followers","following_url":"https://api.github.com/users/jamesgorrie/following{/other_user}","gists_url":"https://api.github.com/users/jamesgorrie/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesgorrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesgorrie/subscriptions","organizations_url":"https://api.github.com/users/jamesgorrie/orgs","repos_url":"https://api.github.com/users/jamesgorrie/repos","events_url":"https://api.github.com/users/jamesgorrie/events{/privacy}","received_events_url":"https://api.github.com/users/jamesgorrie/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T12:11:18Z","updated_at":"2015-11-23T12:11:18Z","body":"Closing in favour of a few smaller PRs"}}