{"action":"created","issue":{"url":"https://api.github.com/repos/goodeggs/resource-schema/issues/14","labels_url":"https://api.github.com/repos/goodeggs/resource-schema/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/goodeggs/resource-schema/issues/14/comments","events_url":"https://api.github.com/repos/goodeggs/resource-schema/issues/14/events","html_url":"https://github.com/goodeggs/resource-schema/pull/14","id":95946008,"number":14,"title":"Allow getters for synthetic primary keys","user":{"login":"demands","id":443070,"avatar_url":"https://avatars.githubusercontent.com/u/443070?v=3","gravatar_id":"","url":"https://api.github.com/users/demands","html_url":"https://github.com/demands","followers_url":"https://api.github.com/users/demands/followers","following_url":"https://api.github.com/users/demands/following{/other_user}","gists_url":"https://api.github.com/users/demands/gists{/gist_id}","starred_url":"https://api.github.com/users/demands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demands/subscriptions","organizations_url":"https://api.github.com/users/demands/orgs","repos_url":"https://api.github.com/users/demands/repos","events_url":"https://api.github.com/users/demands/events{/privacy}","received_events_url":"https://api.github.com/users/demands/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-19T20:23:19Z","updated_at":"2015-07-19T20:49:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/goodeggs/resource-schema/pulls/14","html_url":"https://github.com/goodeggs/resource-schema/pull/14","diff_url":"https://github.com/goodeggs/resource-schema/pull/14.diff","patch_url":"https://github.com/goodeggs/resource-schema/pull/14.patch"},"body":"i.e., if you have a resource that looks like this:\n\n```js\nvar resource = new ResourceSchema(Model, {primaryKey: 'foo.bar'})\n```\n\nthen you should be able to do something like this:\n\n```js\napp.get('/resource/:primaryKey', resource.get('primaryKey'))\n```\n\nAnd have `GET /resource/quux` do a query like `Model.find('foo:bar': 'quux')`."},"comment":{"url":"https://api.github.com/repos/goodeggs/resource-schema/issues/comments/122706430","html_url":"https://github.com/goodeggs/resource-schema/pull/14#issuecomment-122706430","issue_url":"https://api.github.com/repos/goodeggs/resource-schema/issues/14","id":122706430,"user":{"login":"demands","id":443070,"avatar_url":"https://avatars.githubusercontent.com/u/443070?v=3","gravatar_id":"","url":"https://api.github.com/users/demands","html_url":"https://github.com/demands","followers_url":"https://api.github.com/users/demands/followers","following_url":"https://api.github.com/users/demands/following{/other_user}","gists_url":"https://api.github.com/users/demands/gists{/gist_id}","starred_url":"https://api.github.com/users/demands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demands/subscriptions","organizations_url":"https://api.github.com/users/demands/orgs","repos_url":"https://api.github.com/users/demands/repos","events_url":"https://api.github.com/users/demands/events{/privacy}","received_events_url":"https://api.github.com/users/demands/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T20:49:22Z","updated_at":"2015-07-19T20:49:22Z","body":"Example of this in action: https://github.com/goodeggs/domain-events-app/blob/master/web/v1/domain_events/index.coffee#L5"}}