{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/LRDesign/relayer/pulls/19","id":47230576,"html_url":"https://github.com/LRDesign/relayer/pull/19","diff_url":"https://github.com/LRDesign/relayer/pull/19.diff","patch_url":"https://github.com/LRDesign/relayer/pull/19.patch","issue_url":"https://api.github.com/repos/LRDesign/relayer/issues/19","number":19,"state":"open","locked":false,"title":"Single resource templates","user":{"login":"hannahhoward","id":1450680,"avatar_url":"https://avatars.githubusercontent.com/u/1450680?v=3","gravatar_id":"","url":"https://api.github.com/users/hannahhoward","html_url":"https://github.com/hannahhoward","followers_url":"https://api.github.com/users/hannahhoward/followers","following_url":"https://api.github.com/users/hannahhoward/following{/other_user}","gists_url":"https://api.github.com/users/hannahhoward/gists{/gist_id}","starred_url":"https://api.github.com/users/hannahhoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannahhoward/subscriptions","organizations_url":"https://api.github.com/users/hannahhoward/orgs","repos_url":"https://api.github.com/users/hannahhoward/repos","events_url":"https://api.github.com/users/hannahhoward/events{/privacy}","received_events_url":"https://api.github.com/users/hannahhoward/received_events","type":"User","site_admin":false},"body":"I've found several cases where I want to look up a uri-templated resource without having it attached to an entire list resource.\r\n\r\nThis allows you to do a hasOne relationship and then set templated = true on it, which means it is assumed to be a linked resource (as opposed to embedded) and you can pass uri params to it to look up a specific instance of that resource.\r\n\r\nThere's a specific need for this for converting over some aspects of the CMS, as the /admin/menus index action returns a very different type of resource than the /admin/menus/:id show action.","created_at":"2015-10-09T03:20:18Z","updated_at":"2015-10-09T03:20:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cbf76546916a55787b6271e45277badd3c149287","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LRDesign/relayer/pulls/19/commits","review_comments_url":"https://api.github.com/repos/LRDesign/relayer/pulls/19/comments","review_comment_url":"https://api.github.com/repos/LRDesign/relayer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LRDesign/relayer/issues/19/comments","statuses_url":"https://api.github.com/repos/LRDesign/relayer/statuses/246f6c080148949aeb2d263347bf0f290b1c91b4","head":{"label":"LRDesign:single_resource_templates","ref":"single_resource_templates","sha":"246f6c080148949aeb2d263347bf0f290b1c91b4","user":{"login":"LRDesign","id":9498,"avatar_url":"https://avatars.githubusercontent.com/u/9498?v=3","gravatar_id":"","url":"https://api.github.com/users/LRDesign","html_url":"https://github.com/LRDesign","followers_url":"https://api.github.com/users/LRDesign/followers","following_url":"https://api.github.com/users/LRDesign/following{/other_user}","gists_url":"https://api.github.com/users/LRDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/LRDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LRDesign/subscriptions","organizations_url":"https://api.github.com/users/LRDesign/orgs","repos_url":"https://api.github.com/users/LRDesign/repos","events_url":"https://api.github.com/users/LRDesign/events{/privacy}","received_events_url":"https://api.github.com/users/LRDesign/received_events","type":"Organization","site_admin":false},"repo":{"id":38725775,"name":"relayer","full_name":"LRDesign/relayer","owner":{"login":"LRDesign","id":9498,"avatar_url":"https://avatars.githubusercontent.com/u/9498?v=3","gravatar_id":"","url":"https://api.github.com/users/LRDesign","html_url":"https://github.com/LRDesign","followers_url":"https://api.github.com/users/LRDesign/followers","following_url":"https://api.github.com/users/LRDesign/following{/other_user}","gists_url":"https://api.github.com/users/LRDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/LRDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LRDesign/subscriptions","organizations_url":"https://api.github.com/users/LRDesign/orgs","repos_url":"https://api.github.com/users/LRDesign/repos","events_url":"https://api.github.com/users/LRDesign/events{/privacy}","received_events_url":"https://api.github.com/users/LRDesign/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LRDesign/relayer","description":"Consume hypermedia API's in Javascript with ease","fork":false,"url":"https://api.github.com/repos/LRDesign/relayer","forks_url":"https://api.github.com/repos/LRDesign/relayer/forks","keys_url":"https://api.github.com/repos/LRDesign/relayer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LRDesign/relayer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LRDesign/relayer/teams","hooks_url":"https://api.github.com/repos/LRDesign/relayer/hooks","issue_events_url":"https://api.github.com/repos/LRDesign/relayer/issues/events{/number}","events_url":"https://api.github.com/repos/LRDesign/relayer/events","assignees_url":"https://api.github.com/repos/LRDesign/relayer/assignees{/user}","branches_url":"https://api.github.com/repos/LRDesign/relayer/branches{/branch}","tags_url":"https://api.github.com/repos/LRDesign/relayer/tags","blobs_url":"https://api.github.com/repos/LRDesign/relayer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LRDesign/relayer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LRDesign/relayer/git/refs{/sha}","trees_url":"https://api.github.com/repos/LRDesign/relayer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LRDesign/relayer/statuses/{sha}","languages_url":"https://api.github.com/repos/LRDesign/relayer/languages","stargazers_url":"https://api.github.com/repos/LRDesign/relayer/stargazers","contributors_url":"https://api.github.com/repos/LRDesign/relayer/contributors","subscribers_url":"https://api.github.com/repos/LRDesign/relayer/subscribers","subscription_url":"https://api.github.com/repos/LRDesign/relayer/subscription","commits_url":"https://api.github.com/repos/LRDesign/relayer/commits{/sha}","git_commits_url":"https://api.github.com/repos/LRDesign/relayer/git/commits{/sha}","comments_url":"https://api.github.com/repos/LRDesign/relayer/comments{/number}","issue_comment_url":"https://api.github.com/repos/LRDesign/relayer/issues/comments{/number}","contents_url":"https://api.github.com/repos/LRDesign/relayer/contents/{+path}","compare_url":"https://api.github.com/repos/LRDesign/relayer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LRDesign/relayer/merges","archive_url":"https://api.github.com/repos/LRDesign/relayer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LRDesign/relayer/downloads","issues_url":"https://api.github.com/repos/LRDesign/relayer/issues{/number}","pulls_url":"https://api.github.com/repos/LRDesign/relayer/pulls{/number}","milestones_url":"https://api.github.com/repos/LRDesign/relayer/milestones{/number}","notifications_url":"https://api.github.com/repos/LRDesign/relayer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LRDesign/relayer/labels{/name}","releases_url":"https://api.github.com/repos/LRDesign/relayer/releases{/id}","created_at":"2015-07-08T02:01:43Z","updated_at":"2015-07-22T08:25:22Z","pushed_at":"2015-10-09T03:20:19Z","git_url":"git://github.com/LRDesign/relayer.git","ssh_url":"git@github.com:LRDesign/relayer.git","clone_url":"https://github.com/LRDesign/relayer.git","svn_url":"https://github.com/LRDesign/relayer","homepage":null,"size":644,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":10,"default_branch":"master"}},"base":{"label":"LRDesign:master","ref":"master","sha":"89ef0ecb05d591c18ec03a3fe6580a0cc46ea04a","user":{"login":"LRDesign","id":9498,"avatar_url":"https://avatars.githubusercontent.com/u/9498?v=3","gravatar_id":"","url":"https://api.github.com/users/LRDesign","html_url":"https://github.com/LRDesign","followers_url":"https://api.github.com/users/LRDesign/followers","following_url":"https://api.github.com/users/LRDesign/following{/other_user}","gists_url":"https://api.github.com/users/LRDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/LRDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LRDesign/subscriptions","organizations_url":"https://api.github.com/users/LRDesign/orgs","repos_url":"https://api.github.com/users/LRDesign/repos","events_url":"https://api.github.com/users/LRDesign/events{/privacy}","received_events_url":"https://api.github.com/users/LRDesign/received_events","type":"Organization","site_admin":false},"repo":{"id":38725775,"name":"relayer","full_name":"LRDesign/relayer","owner":{"login":"LRDesign","id":9498,"avatar_url":"https://avatars.githubusercontent.com/u/9498?v=3","gravatar_id":"","url":"https://api.github.com/users/LRDesign","html_url":"https://github.com/LRDesign","followers_url":"https://api.github.com/users/LRDesign/followers","following_url":"https://api.github.com/users/LRDesign/following{/other_user}","gists_url":"https://api.github.com/users/LRDesign/gists{/gist_id}","starred_url":"https://api.github.com/users/LRDesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LRDesign/subscriptions","organizations_url":"https://api.github.com/users/LRDesign/orgs","repos_url":"https://api.github.com/users/LRDesign/repos","events_url":"https://api.github.com/users/LRDesign/events{/privacy}","received_events_url":"https://api.github.com/users/LRDesign/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LRDesign/relayer","description":"Consume hypermedia API's in Javascript with ease","fork":false,"url":"https://api.github.com/repos/LRDesign/relayer","forks_url":"https://api.github.com/repos/LRDesign/relayer/forks","keys_url":"https://api.github.com/repos/LRDesign/relayer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LRDesign/relayer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LRDesign/relayer/teams","hooks_url":"https://api.github.com/repos/LRDesign/relayer/hooks","issue_events_url":"https://api.github.com/repos/LRDesign/relayer/issues/events{/number}","events_url":"https://api.github.com/repos/LRDesign/relayer/events","assignees_url":"https://api.github.com/repos/LRDesign/relayer/assignees{/user}","branches_url":"https://api.github.com/repos/LRDesign/relayer/branches{/branch}","tags_url":"https://api.github.com/repos/LRDesign/relayer/tags","blobs_url":"https://api.github.com/repos/LRDesign/relayer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LRDesign/relayer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LRDesign/relayer/git/refs{/sha}","trees_url":"https://api.github.com/repos/LRDesign/relayer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LRDesign/relayer/statuses/{sha}","languages_url":"https://api.github.com/repos/LRDesign/relayer/languages","stargazers_url":"https://api.github.com/repos/LRDesign/relayer/stargazers","contributors_url":"https://api.github.com/repos/LRDesign/relayer/contributors","subscribers_url":"https://api.github.com/repos/LRDesign/relayer/subscribers","subscription_url":"https://api.github.com/repos/LRDesign/relayer/subscription","commits_url":"https://api.github.com/repos/LRDesign/relayer/commits{/sha}","git_commits_url":"https://api.github.com/repos/LRDesign/relayer/git/commits{/sha}","comments_url":"https://api.github.com/repos/LRDesign/relayer/comments{/number}","issue_comment_url":"https://api.github.com/repos/LRDesign/relayer/issues/comments{/number}","contents_url":"https://api.github.com/repos/LRDesign/relayer/contents/{+path}","compare_url":"https://api.github.com/repos/LRDesign/relayer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LRDesign/relayer/merges","archive_url":"https://api.github.com/repos/LRDesign/relayer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LRDesign/relayer/downloads","issues_url":"https://api.github.com/repos/LRDesign/relayer/issues{/number}","pulls_url":"https://api.github.com/repos/LRDesign/relayer/pulls{/number}","milestones_url":"https://api.github.com/repos/LRDesign/relayer/milestones{/number}","notifications_url":"https://api.github.com/repos/LRDesign/relayer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LRDesign/relayer/labels{/name}","releases_url":"https://api.github.com/repos/LRDesign/relayer/releases{/id}","created_at":"2015-07-08T02:01:43Z","updated_at":"2015-07-22T08:25:22Z","pushed_at":"2015-10-09T03:20:19Z","git_url":"git://github.com/LRDesign/relayer.git","ssh_url":"git@github.com:LRDesign/relayer.git","clone_url":"https://github.com/LRDesign/relayer.git","svn_url":"https://github.com/LRDesign/relayer","homepage":null,"size":644,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LRDesign/relayer/pulls/19"},"html":{"href":"https://github.com/LRDesign/relayer/pull/19"},"issue":{"href":"https://api.github.com/repos/LRDesign/relayer/issues/19"},"comments":{"href":"https://api.github.com/repos/LRDesign/relayer/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/LRDesign/relayer/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/LRDesign/relayer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LRDesign/relayer/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/LRDesign/relayer/statuses/246f6c080148949aeb2d263347bf0f290b1c91b4"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":163,"deletions":52,"changed_files":3}}