{"action":"created","issue":{"url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1268","labels_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1268/labels{/name}","comments_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1268/comments","events_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1268/events","html_url":"https://github.com/rejectedsoftware/vibe.d/pull/1268","id":106977145,"number":1268,"title":"REST collections","user":{"login":"s-ludwig","id":1645969,"avatar_url":"https://avatars.githubusercontent.com/u/1645969?v=3","gravatar_id":"","url":"https://api.github.com/users/s-ludwig","html_url":"https://github.com/s-ludwig","followers_url":"https://api.github.com/users/s-ludwig/followers","following_url":"https://api.github.com/users/s-ludwig/following{/other_user}","gists_url":"https://api.github.com/users/s-ludwig/gists{/gist_id}","starred_url":"https://api.github.com/users/s-ludwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-ludwig/subscriptions","organizations_url":"https://api.github.com/users/s-ludwig/orgs","repos_url":"https://api.github.com/users/s-ludwig/repos","events_url":"https://api.github.com/users/s-ludwig/events{/privacy}","received_events_url":"https://api.github.com/users/s-ludwig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-17T12:52:39Z","updated_at":"2015-10-15T17:00:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rejectedsoftware/vibe.d/pulls/1268","html_url":"https://github.com/rejectedsoftware/vibe.d/pull/1268","diff_url":"https://github.com/rejectedsoftware/vibe.d/pull/1268.diff","patch_url":"https://github.com/rejectedsoftware/vibe.d/pull/1268.patch"},"body":"This PR adds syntactic support for item collections in REST interfaces. It does so in a backwards compatible manner w.r.t interface definition (i.e. existing interfaces stay the same except for defining an additional item key type/name).\r\n\r\nOpen issues:\r\n - ~~`@path` annotations currently have to be used manually to get nice URLs (see test project)~~\r\n - ... don't remember, but there was something else\r\n\r\n~~The current `ItemID` `TypeTuple` is going to be replaced by a `struct` that at the same time defines the types and names of the key parameters. The interface generator will then validate all methods to have the right parameters and will automatically generate a proper method path (`\":key/method\"`).~~\r\n\r\nThis PR depends on #1266"},"comment":{"url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/comments/148457280","html_url":"https://github.com/rejectedsoftware/vibe.d/pull/1268#issuecomment-148457280","issue_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1268","id":148457280,"user":{"login":"s-ludwig","id":1645969,"avatar_url":"https://avatars.githubusercontent.com/u/1645969?v=3","gravatar_id":"","url":"https://api.github.com/users/s-ludwig","html_url":"https://github.com/s-ludwig","followers_url":"https://api.github.com/users/s-ludwig/followers","following_url":"https://api.github.com/users/s-ludwig/following{/other_user}","gists_url":"https://api.github.com/users/s-ludwig/gists{/gist_id}","starred_url":"https://api.github.com/users/s-ludwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-ludwig/subscriptions","organizations_url":"https://api.github.com/users/s-ludwig/orgs","repos_url":"https://api.github.com/users/s-ludwig/repos","events_url":"https://api.github.com/users/s-ludwig/events{/privacy}","received_events_url":"https://api.github.com/users/s-ludwig/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T17:00:34Z","updated_at":"2015-10-15T17:00:34Z","body":"I've added some more thorough documentation for `Collection!I`. There should probably also be an example in the examples/ folder, but the current \"rest\" example seems already a bit too crowded. Maybe I'll just take the one from \"tests/rest-collections\" and adjust it a little."}}