{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/comments/56143471","id":56143471,"diff_hunk":"@@ -880,3 +880,9 @@ def CMDBUser(request, systemCode):\n     if (request.method == 'PUT'):\n         request.body = json.loads(request.body.decode(),'utf-8')\n     return recordDetail(None, request.method, request.body, CMDBUserSerializer.Meta.model, CMDBUserSerializer, CMDBUserSerializer.Meta.fields, {'systemCode': systemCode}, {'systemCode': systemCode})\n+\n+# Simple view for handling documentation pages\n+from django.views.generic.base import TemplateView\n+@api_view() # This decorator makes sure request.user is populated for navigation\n+def docPage(request, template='unknowntemplate'):\n+    return TemplateView.as_view(template_name=template+'.html')(request)","path":"cmdbv2api/views.py","position":54,"original_position":54,"commit_id":"d48ff86edb835acc5f9dbbd3fdc2a46f3cbf49f4","original_commit_id":"e2017d81069b1e9aec9c16cd7ddc8e01a87de01d","user":{"login":"lucas42","id":428847,"avatar_url":"https://avatars.githubusercontent.com/u/428847?v=3","gravatar_id":"","url":"https://api.github.com/users/lucas42","html_url":"https://github.com/lucas42","followers_url":"https://api.github.com/users/lucas42/followers","following_url":"https://api.github.com/users/lucas42/following{/other_user}","gists_url":"https://api.github.com/users/lucas42/gists{/gist_id}","starred_url":"https://api.github.com/users/lucas42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucas42/subscriptions","organizations_url":"https://api.github.com/users/lucas42/orgs","repos_url":"https://api.github.com/users/lucas42/repos","events_url":"https://api.github.com/users/lucas42/events{/privacy}","received_events_url":"https://api.github.com/users/lucas42/received_events","type":"User","site_admin":false},"body":"We can continue this conversation in the email chain.  Don't think it's a requirement for this pull request.","created_at":"2016-03-15T10:38:21Z","updated_at":"2016-03-15T10:38:21Z","html_url":"https://github.com/Financial-Times/cmdb/pull/19#discussion_r56143471","pull_request_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/comments/56143471"},"html":{"href":"https://github.com/Financial-Times/cmdb/pull/19#discussion_r56143471"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/19","id":62818676,"html_url":"https://github.com/Financial-Times/cmdb/pull/19","diff_url":"https://github.com/Financial-Times/cmdb/pull/19.diff","patch_url":"https://github.com/Financial-Times/cmdb/pull/19.patch","issue_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/19","number":19,"state":"open","locked":false,"title":"Add some useful navigation for UI","user":{"login":"lucas42","id":428847,"avatar_url":"https://avatars.githubusercontent.com/u/428847?v=3","gravatar_id":"","url":"https://api.github.com/users/lucas42","html_url":"https://github.com/lucas42","followers_url":"https://api.github.com/users/lucas42/followers","following_url":"https://api.github.com/users/lucas42/following{/other_user}","gists_url":"https://api.github.com/users/lucas42/gists{/gist_id}","starred_url":"https://api.github.com/users/lucas42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucas42/subscriptions","organizations_url":"https://api.github.com/users/lucas42/orgs","repos_url":"https://api.github.com/users/lucas42/repos","events_url":"https://api.github.com/users/lucas42/events{/privacy}","received_events_url":"https://api.github.com/users/lucas42/received_events","type":"User","site_admin":false},"body":"Adds links to items and relationships as primary endpoints.  Other endpoints are in an \"Advanced\" subsection.","created_at":"2016-03-14T21:15:52Z","updated_at":"2016-03-15T10:38:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e1e52a62e63f2017494063261a7cd90c69f66f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/19/comments","statuses_url":"https://api.github.com/repos/Financial-Times/cmdb/statuses/d48ff86edb835acc5f9dbbd3fdc2a46f3cbf49f4","head":{"label":"Financial-Times:nav","ref":"nav","sha":"d48ff86edb835acc5f9dbbd3fdc2a46f3cbf49f4","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":52922924,"name":"cmdb","full_name":"Financial-Times/cmdb","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/cmdb","description":"","fork":false,"url":"https://api.github.com/repos/Financial-Times/cmdb","forks_url":"https://api.github.com/repos/Financial-Times/cmdb/forks","keys_url":"https://api.github.com/repos/Financial-Times/cmdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/cmdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/cmdb/teams","hooks_url":"https://api.github.com/repos/Financial-Times/cmdb/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/cmdb/events","assignees_url":"https://api.github.com/repos/Financial-Times/cmdb/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/cmdb/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/cmdb/tags","blobs_url":"https://api.github.com/repos/Financial-Times/cmdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/cmdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/cmdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/cmdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/cmdb/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/cmdb/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/cmdb/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/cmdb/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/cmdb/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/cmdb/subscription","commits_url":"https://api.github.com/repos/Financial-Times/cmdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/cmdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/cmdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/cmdb/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/cmdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/cmdb/merges","archive_url":"https://api.github.com/repos/Financial-Times/cmdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/cmdb/downloads","issues_url":"https://api.github.com/repos/Financial-Times/cmdb/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/cmdb/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/cmdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/cmdb/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/cmdb/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/cmdb/deployments","created_at":"2016-03-02T01:17:11Z","updated_at":"2016-03-14T15:22:52Z","pushed_at":"2016-03-15T10:18:26Z","git_url":"git://github.com/Financial-Times/cmdb.git","ssh_url":"git@github.com:Financial-Times/cmdb.git","clone_url":"https://github.com/Financial-Times/cmdb.git","svn_url":"https://github.com/Financial-Times/cmdb","homepage":null,"size":237,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"a050c55c42900a999c44cff650cdf75ac91c4bda","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":52922924,"name":"cmdb","full_name":"Financial-Times/cmdb","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/cmdb","description":"","fork":false,"url":"https://api.github.com/repos/Financial-Times/cmdb","forks_url":"https://api.github.com/repos/Financial-Times/cmdb/forks","keys_url":"https://api.github.com/repos/Financial-Times/cmdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/cmdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/cmdb/teams","hooks_url":"https://api.github.com/repos/Financial-Times/cmdb/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/cmdb/events","assignees_url":"https://api.github.com/repos/Financial-Times/cmdb/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/cmdb/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/cmdb/tags","blobs_url":"https://api.github.com/repos/Financial-Times/cmdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/cmdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/cmdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/cmdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/cmdb/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/cmdb/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/cmdb/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/cmdb/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/cmdb/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/cmdb/subscription","commits_url":"https://api.github.com/repos/Financial-Times/cmdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/cmdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/cmdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/cmdb/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/cmdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/cmdb/merges","archive_url":"https://api.github.com/repos/Financial-Times/cmdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/cmdb/downloads","issues_url":"https://api.github.com/repos/Financial-Times/cmdb/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/cmdb/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/cmdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/cmdb/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/cmdb/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/cmdb/deployments","created_at":"2016-03-02T01:17:11Z","updated_at":"2016-03-14T15:22:52Z","pushed_at":"2016-03-15T10:18:26Z","git_url":"git://github.com/Financial-Times/cmdb.git","ssh_url":"git@github.com:Financial-Times/cmdb.git","clone_url":"https://github.com/Financial-Times/cmdb.git","svn_url":"https://github.com/Financial-Times/cmdb","homepage":null,"size":237,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/19"},"html":{"href":"https://github.com/Financial-Times/cmdb/pull/19"},"issue":{"href":"https://api.github.com/repos/Financial-Times/cmdb/issues/19"},"comments":{"href":"https://api.github.com/repos/Financial-Times/cmdb/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/cmdb/statuses/d48ff86edb835acc5f9dbbd3fdc2a46f3cbf49f4"}}}}