{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/stagecraft/pulls/comments/22598092","id":22598092,"diff_hunk":"@@ -23,10 +23,12 @@\n FORMAT_CHECKER = FormatChecker()\n \n \n-def resource_url(ident, cls):\n+def resource_url(ident, cls, finder_matcher=None):\n+    finder_matcher = finder_matcher if finder_matcher else '<id>{}'.format(\n+        UUID_RE_STRING)\n     return url(\n-        r'^{}(?:/(?P<id>{})(?:/(?P<sub_resource>[a-z]+))?)?'.format(\n-            ident, UUID_RE_STRING),\n+        r'^{}(?:/(?P{})(?:/(?P<sub_resource>[a-z]+))?)?'.format(\n+            ident, finder_matcher),","path":"stagecraft/libs/views/resource.py","position":21,"original_position":21,"commit_id":"0fabe15c1e1fc727e8a972e3ba4b49f2472d1e2e","original_commit_id":"0fabe15c1e1fc727e8a972e3ba4b49f2472d1e2e","user":{"login":"tombooth","id":108382,"avatar_url":"https://avatars.githubusercontent.com/u/108382?v=3","gravatar_id":"","url":"https://api.github.com/users/tombooth","html_url":"https://github.com/tombooth","followers_url":"https://api.github.com/users/tombooth/followers","following_url":"https://api.github.com/users/tombooth/following{/other_user}","gists_url":"https://api.github.com/users/tombooth/gists{/gist_id}","starred_url":"https://api.github.com/users/tombooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombooth/subscriptions","organizations_url":"https://api.github.com/users/tombooth/orgs","repos_url":"https://api.github.com/users/tombooth/repos","events_url":"https://api.github.com/users/tombooth/events{/privacy}","received_events_url":"https://api.github.com/users/tombooth/received_events","type":"User","site_admin":false},"body":"Could this be id_matcher to show its relation to the id of the model","created_at":"2015-01-07T16:50:25Z","updated_at":"2015-01-07T16:50:25Z","html_url":"https://github.com/alphagov/stagecraft/pull/288#discussion_r22598092","pull_request_url":"https://api.github.com/repos/alphagov/stagecraft/pulls/288","_links":{"self":{"href":"https://api.github.com/repos/alphagov/stagecraft/pulls/comments/22598092"},"html":{"href":"https://github.com/alphagov/stagecraft/pull/288#discussion_r22598092"},"pull_request":{"href":"https://api.github.com/repos/alphagov/stagecraft/pulls/288"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/stagecraft/pulls/288","id":26904818,"html_url":"https://github.com/alphagov/stagecraft/pull/288","diff_url":"https://github.com/alphagov/stagecraft/pull/288.diff","patch_url":"https://github.com/alphagov/stagecraft/pull/288.patch","issue_url":"https://api.github.com/repos/alphagov/stagecraft/issues/288","number":288,"state":"open","locked":false,"title":"Post create data set","user":{"login":"jcbashdown","id":677893,"avatar_url":"https://avatars.githubusercontent.com/u/677893?v=3","gravatar_id":"","url":"https://api.github.com/users/jcbashdown","html_url":"https://github.com/jcbashdown","followers_url":"https://api.github.com/users/jcbashdown/followers","following_url":"https://api.github.com/users/jcbashdown/following{/other_user}","gists_url":"https://api.github.com/users/jcbashdown/gists{/gist_id}","starred_url":"https://api.github.com/users/jcbashdown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcbashdown/subscriptions","organizations_url":"https://api.github.com/users/jcbashdown/orgs","repos_url":"https://api.github.com/users/jcbashdown/repos","events_url":"https://api.github.com/users/jcbashdown/events{/privacy}","received_events_url":"https://api.github.com/users/jcbashdown/received_events","type":"User","site_admin":false},"body":"Working post to create data set api end point !WITH VALIDATIONS! Oooh.\r\n\r\nIncludes refactoring of existing routes into resource view\r\n\r\nLeaves out update for now\r\n\r\nDoes not move sub resources into resource view for now. I had refactor fatigue in my brain.","created_at":"2015-01-06T17:47:00Z","updated_at":"2015-01-07T16:50:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57cbd2dbe4403196e511dc6a6c9449d2c2b3caad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/stagecraft/pulls/288/commits","review_comments_url":"https://api.github.com/repos/alphagov/stagecraft/pulls/288/comments","review_comment_url":"https://api.github.com/repos/alphagov/stagecraft/pulls/comments/{number}","comments_url":"https://api.github.com/repos/alphagov/stagecraft/issues/288/comments","statuses_url":"https://api.github.com/repos/alphagov/stagecraft/statuses/0fabe15c1e1fc727e8a972e3ba4b49f2472d1e2e","head":{"label":"alphagov:post-create-data-set","ref":"post-create-data-set","sha":"0fabe15c1e1fc727e8a972e3ba4b49f2472d1e2e","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":13295877,"name":"stagecraft","full_name":"alphagov/stagecraft","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/stagecraft","description":"A configuration service for the Performance Platform","fork":false,"url":"https://api.github.com/repos/alphagov/stagecraft","forks_url":"https://api.github.com/repos/alphagov/stagecraft/forks","keys_url":"https://api.github.com/repos/alphagov/stagecraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/stagecraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/stagecraft/teams","hooks_url":"https://api.github.com/repos/alphagov/stagecraft/hooks","issue_events_url":"https://api.github.com/repos/alphagov/stagecraft/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/stagecraft/events","assignees_url":"https://api.github.com/repos/alphagov/stagecraft/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/stagecraft/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/stagecraft/tags","blobs_url":"https://api.github.com/repos/alphagov/stagecraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/stagecraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/stagecraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/stagecraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/stagecraft/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/stagecraft/languages","stargazers_url":"https://api.github.com/repos/alphagov/stagecraft/stargazers","contributors_url":"https://api.github.com/repos/alphagov/stagecraft/contributors","subscribers_url":"https://api.github.com/repos/alphagov/stagecraft/subscribers","subscription_url":"https://api.github.com/repos/alphagov/stagecraft/subscription","commits_url":"https://api.github.com/repos/alphagov/stagecraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/stagecraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/stagecraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/stagecraft/issues/comments/{number}","contents_url":"https://api.github.com/repos/alphagov/stagecraft/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/stagecraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/stagecraft/merges","archive_url":"https://api.github.com/repos/alphagov/stagecraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/stagecraft/downloads","issues_url":"https://api.github.com/repos/alphagov/stagecraft/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/stagecraft/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/stagecraft/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/stagecraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/stagecraft/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/stagecraft/releases{/id}","created_at":"2013-10-03T11:08:32Z","updated_at":"2015-01-07T15:35:07Z","pushed_at":"2015-01-07T16:14:13Z","git_url":"git://github.com/alphagov/stagecraft.git","ssh_url":"git@github.com:alphagov/stagecraft.git","clone_url":"https://github.com/alphagov/stagecraft.git","svn_url":"https://github.com/alphagov/stagecraft","homepage":"","size":5372,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"6d7bd640d26b4faf62565b277a99c65f88fe3850","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":13295877,"name":"stagecraft","full_name":"alphagov/stagecraft","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/stagecraft","description":"A configuration service for the Performance Platform","fork":false,"url":"https://api.github.com/repos/alphagov/stagecraft","forks_url":"https://api.github.com/repos/alphagov/stagecraft/forks","keys_url":"https://api.github.com/repos/alphagov/stagecraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/stagecraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/stagecraft/teams","hooks_url":"https://api.github.com/repos/alphagov/stagecraft/hooks","issue_events_url":"https://api.github.com/repos/alphagov/stagecraft/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/stagecraft/events","assignees_url":"https://api.github.com/repos/alphagov/stagecraft/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/stagecraft/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/stagecraft/tags","blobs_url":"https://api.github.com/repos/alphagov/stagecraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/stagecraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/stagecraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/stagecraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/stagecraft/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/stagecraft/languages","stargazers_url":"https://api.github.com/repos/alphagov/stagecraft/stargazers","contributors_url":"https://api.github.com/repos/alphagov/stagecraft/contributors","subscribers_url":"https://api.github.com/repos/alphagov/stagecraft/subscribers","subscription_url":"https://api.github.com/repos/alphagov/stagecraft/subscription","commits_url":"https://api.github.com/repos/alphagov/stagecraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/stagecraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/stagecraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/stagecraft/issues/comments/{number}","contents_url":"https://api.github.com/repos/alphagov/stagecraft/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/stagecraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/stagecraft/merges","archive_url":"https://api.github.com/repos/alphagov/stagecraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/stagecraft/downloads","issues_url":"https://api.github.com/repos/alphagov/stagecraft/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/stagecraft/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/stagecraft/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/stagecraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/stagecraft/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/stagecraft/releases{/id}","created_at":"2013-10-03T11:08:32Z","updated_at":"2015-01-07T15:35:07Z","pushed_at":"2015-01-07T16:14:13Z","git_url":"git://github.com/alphagov/stagecraft.git","ssh_url":"git@github.com:alphagov/stagecraft.git","clone_url":"https://github.com/alphagov/stagecraft.git","svn_url":"https://github.com/alphagov/stagecraft","homepage":"","size":5372,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/stagecraft/pulls/288"},"html":{"href":"https://github.com/alphagov/stagecraft/pull/288"},"issue":{"href":"https://api.github.com/repos/alphagov/stagecraft/issues/288"},"comments":{"href":"https://api.github.com/repos/alphagov/stagecraft/issues/288/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/stagecraft/pulls/288/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/stagecraft/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/alphagov/stagecraft/pulls/288/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/stagecraft/statuses/0fabe15c1e1fc727e8a972e3ba4b49f2472d1e2e"}}}}