{"action":"created","issue":{"url":"https://api.github.com/repos/alexmingoia/koa-resource-router/issues/18","repository_url":"https://api.github.com/repos/alexmingoia/koa-resource-router","labels_url":"https://api.github.com/repos/alexmingoia/koa-resource-router/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/alexmingoia/koa-resource-router/issues/18/comments","events_url":"https://api.github.com/repos/alexmingoia/koa-resource-router/issues/18/events","html_url":"https://github.com/alexmingoia/koa-resource-router/pull/18","id":184698165,"number":18,"title":"Document the id parameter","user":{"login":"sunjay","id":530939,"avatar_url":"https://avatars.githubusercontent.com/u/530939?v=3","gravatar_id":"","url":"https://api.github.com/users/sunjay","html_url":"https://github.com/sunjay","followers_url":"https://api.github.com/users/sunjay/followers","following_url":"https://api.github.com/users/sunjay/following{/other_user}","gists_url":"https://api.github.com/users/sunjay/gists{/gist_id}","starred_url":"https://api.github.com/users/sunjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunjay/subscriptions","organizations_url":"https://api.github.com/users/sunjay/orgs","repos_url":"https://api.github.com/users/sunjay/repos","events_url":"https://api.github.com/users/sunjay/events{/privacy}","received_events_url":"https://api.github.com/users/sunjay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-23T16:00:46Z","updated_at":"2016-12-22T06:03:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alexmingoia/koa-resource-router/pulls/18","html_url":"https://github.com/alexmingoia/koa-resource-router/pull/18","diff_url":"https://github.com/alexmingoia/koa-resource-router/pull/18.diff","patch_url":"https://github.com/alexmingoia/koa-resource-router/pull/18.patch"},"body":"Hi,\nI had a really hard time figuring out what the param name was for the `:id` url parameter. All the comments in the example resource say something like `/users/:id`. That made me expect that the id would be available at `this.params.id`. I eventually managed to figure out that the resource name gets singularized and that name becomes the id parameter.\n\nSpelling this out explicitly in the docs will hopefully help a lot of people avoid that confusion. \n"},"comment":{"url":"https://api.github.com/repos/alexmingoia/koa-resource-router/issues/comments/268725886","html_url":"https://github.com/alexmingoia/koa-resource-router/pull/18#issuecomment-268725886","issue_url":"https://api.github.com/repos/alexmingoia/koa-resource-router/issues/18","id":268725886,"user":{"login":"sunjay","id":530939,"avatar_url":"https://avatars.githubusercontent.com/u/530939?v=3","gravatar_id":"","url":"https://api.github.com/users/sunjay","html_url":"https://github.com/sunjay","followers_url":"https://api.github.com/users/sunjay/followers","following_url":"https://api.github.com/users/sunjay/following{/other_user}","gists_url":"https://api.github.com/users/sunjay/gists{/gist_id}","starred_url":"https://api.github.com/users/sunjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunjay/subscriptions","organizations_url":"https://api.github.com/users/sunjay/orgs","repos_url":"https://api.github.com/users/sunjay/repos","events_url":"https://api.github.com/users/sunjay/events{/privacy}","received_events_url":"https://api.github.com/users/sunjay/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T06:03:04Z","updated_at":"2016-12-22T06:03:04Z","body":"@alexmingoia ping"}}
{"actor":{"display_login":"sunjay"}}