{"action":"closed","number":10,"pull_request":{"url":"https://api.github.com/repos/seanttaylor/johannes-cms/pulls/10","id":218166485,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MTY2NDg1","html_url":"https://github.com/seanttaylor/johannes-cms/pull/10","diff_url":"https://github.com/seanttaylor/johannes-cms/pull/10.diff","patch_url":"https://github.com/seanttaylor/johannes-cms/pull/10.patch","issue_url":"https://api.github.com/repos/seanttaylor/johannes-cms/issues/10","number":10,"state":"closed","locked":false,"title":"SECURED TOP-LEVEL API RESOURCE ENDPOINTS.","user":{"login":"seanttaylor","id":8403573,"node_id":"MDQ6VXNlcjg0MDM1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/8403573?v=4","gravatar_id":"","url":"https://api.github.com/users/seanttaylor","html_url":"https://github.com/seanttaylor","followers_url":"https://api.github.com/users/seanttaylor/followers","following_url":"https://api.github.com/users/seanttaylor/following{/other_user}","gists_url":"https://api.github.com/users/seanttaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/seanttaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanttaylor/subscriptions","organizations_url":"https://api.github.com/users/seanttaylor/orgs","repos_url":"https://api.github.com/users/seanttaylor/repos","events_url":"https://api.github.com/users/seanttaylor/events{/privacy}","received_events_url":"https://api.github.com/users/seanttaylor/received_events","type":"User","site_admin":false},"body":"_Secured top-level API resource endpoints._\r\n* Completes the task defined [here](https://github.com/seanttaylor/johannes-cms/projects/1#card-13210736).\r\n* All top-level resources are only accessible by users with a valid JWT with the `role` claim set to `admin` to prevent unauthorized access to user content.\r\n\r\n_Secured user sub-resource endpoints._\r\n* Completes the task defined [here](https://github.com/seanttaylor/johannes-cms/projects/1#card-13210988).\r\n* All top-level user sub-resources (e.g. `/api/v1/users/{id}/{resource}`) are only accessible by users with a valid JWT with the `sub` claim **equal to** the `id` URL parameter _or_ users with a valid JWT with the `role` claim set to `admin` .\r\n\r\nAdded `./services/middleware` module to house API middleware functions. ","created_at":"2018-09-26T01:47:55Z","updated_at":"2018-09-26T01:48:25Z","closed_at":"2018-09-26T01:48:25Z","merged_at":"2018-09-26T01:48:25Z","merge_commit_sha":"5041140b04d8fcd4482212dddda1a4924842b3dd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/seanttaylor/johannes-cms/pulls/10/commits","review_comments_url":"https://api.github.com/repos/seanttaylor/johannes-cms/pulls/10/comments","review_comment_url":"https://api.github.com/repos/seanttaylor/johannes-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seanttaylor/johannes-cms/issues/10/comments","statuses_url":"https://api.github.com/repos/seanttaylor/johannes-cms/statuses/c1e7e4c63ed611792f9ebf46bbf3eb448110bd57","head":{"label":"seanttaylor:development","ref":"development","sha":"c1e7e4c63ed611792f9ebf46bbf3eb448110bd57","user":{"login":"seanttaylor","id":8403573,"node_id":"MDQ6VXNlcjg0MDM1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/8403573?v=4","gravatar_id":"","url":"https://api.github.com/users/seanttaylor","html_url":"https://github.com/seanttaylor","followers_url":"https://api.github.com/users/seanttaylor/followers","following_url":"https://api.github.com/users/seanttaylor/following{/other_user}","gists_url":"https://api.github.com/users/seanttaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/seanttaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanttaylor/subscriptions","organizations_url":"https://api.github.com/users/seanttaylor/orgs","repos_url":"https://api.github.com/users/seanttaylor/repos","events_url":"https://api.github.com/users/seanttaylor/events{/privacy}","received_events_url":"https://api.github.com/users/seanttaylor/received_events","type":"User","site_admin":false},"repo":{"id":146521690,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY1MjE2OTA=","name":"johannes-cms","full_name":"seanttaylor/johannes-cms","private":false,"owner":{"login":"seanttaylor","id":8403573,"node_id":"MDQ6VXNlcjg0MDM1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/8403573?v=4","gravatar_id":"","url":"https://api.github.com/users/seanttaylor","html_url":"https://github.com/seanttaylor","followers_url":"https://api.github.com/users/seanttaylor/followers","following_url":"https://api.github.com/users/seanttaylor/following{/other_user}","gists_url":"https://api.github.com/users/seanttaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/seanttaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanttaylor/subscriptions","organizations_url":"https://api.github.com/users/seanttaylor/orgs","repos_url":"https://api.github.com/users/seanttaylor/repos","events_url":"https://api.github.com/users/seanttaylor/events{/privacy}","received_events_url":"https://api.github.com/users/seanttaylor/received_events","type":"User","site_admin":false},"html_url":"https://github.com/seanttaylor/johannes-cms","description":"REST API for Johannes Content Management System.","fork":false,"url":"https://api.github.com/repos/seanttaylor/johannes-cms","forks_url":"https://api.github.com/repos/seanttaylor/johannes-cms/forks","keys_url":"https://api.github.com/repos/seanttaylor/johannes-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seanttaylor/johannes-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seanttaylor/johannes-cms/teams","hooks_url":"https://api.github.com/repos/seanttaylor/johannes-cms/hooks","issue_events_url":"https://api.github.com/repos/seanttaylor/johannes-cms/issues/events{/number}","events_url":"https://api.github.com/repos/seanttaylor/johannes-cms/events","assignees_url":"https://api.github.com/repos/seanttaylor/johannes-cms/assignees{/user}","branches_url":"https://api.github.com/repos/seanttaylor/johannes-cms/branches{/branch}","tags_url":"https://api.github.com/repos/seanttaylor/johannes-cms/tags","blobs_url":"https://api.github.com/repos/seanttaylor/johannes-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seanttaylor/johannes-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seanttaylor/johannes-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/seanttaylor/johannes-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seanttaylor/johannes-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/seanttaylor/johannes-cms/languages","stargazers_url":"https://api.github.com/repos/seanttaylor/johannes-cms/stargazers","contributors_url":"https://api.github.com/repos/seanttaylor/johannes-cms/contributors","subscribers_url":"https://api.github.com/repos/seanttaylor/johannes-cms/subscribers","subscription_url":"https://api.github.com/repos/seanttaylor/johannes-cms/subscription","commits_url":"https://api.github.com/repos/seanttaylor/johannes-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/seanttaylor/johannes-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/seanttaylor/johannes-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/seanttaylor/johannes-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/seanttaylor/johannes-cms/contents/{+path}","compare_url":"https://api.github.com/repos/seanttaylor/johannes-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seanttaylor/johannes-cms/merges","archive_url":"https://api.github.com/repos/seanttaylor/johannes-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seanttaylor/johannes-cms/downloads","issues_url":"https://api.github.com/repos/seanttaylor/johannes-cms/issues{/number}","pulls_url":"https://api.github.com/repos/seanttaylor/johannes-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/seanttaylor/johannes-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/seanttaylor/johannes-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seanttaylor/johannes-cms/labels{/name}","releases_url":"https://api.github.com/repos/seanttaylor/johannes-cms/releases{/id}","deployments_url":"https://api.github.com/repos/seanttaylor/johannes-cms/deployments","created_at":"2018-08-29T00:19:10Z","updated_at":"2018-09-25T17:40:55Z","pushed_at":"2018-09-26T01:48:25Z","git_url":"git://github.com/seanttaylor/johannes-cms.git","ssh_url":"git@github.com:seanttaylor/johannes-cms.git","clone_url":"https://github.com/seanttaylor/johannes-cms.git","svn_url":"https://github.com/seanttaylor/johannes-cms","homepage":"","size":1221,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"seanttaylor:master","ref":"master","sha":"04f39f659e1c7794742b2551058363a317af1304","user":{"login":"seanttaylor","id":8403573,"node_id":"MDQ6VXNlcjg0MDM1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/8403573?v=4","gravatar_id":"","url":"https://api.github.com/users/seanttaylor","html_url":"https://github.com/seanttaylor","followers_url":"https://api.github.com/users/seanttaylor/followers","following_url":"https://api.github.com/users/seanttaylor/following{/other_user}","gists_url":"https://api.github.com/users/seanttaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/seanttaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanttaylor/subscriptions","organizations_url":"https://api.github.com/users/seanttaylor/orgs","repos_url":"https://api.github.com/users/seanttaylor/repos","events_url":"https://api.github.com/users/seanttaylor/events{/privacy}","received_events_url":"https://api.github.com/users/seanttaylor/received_events","type":"User","site_admin":false},"repo":{"id":146521690,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY1MjE2OTA=","name":"johannes-cms","full_name":"seanttaylor/johannes-cms","private":false,"owner":{"login":"seanttaylor","id":8403573,"node_id":"MDQ6VXNlcjg0MDM1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/8403573?v=4","gravatar_id":"","url":"https://api.github.com/users/seanttaylor","html_url":"https://github.com/seanttaylor","followers_url":"https://api.github.com/users/seanttaylor/followers","following_url":"https://api.github.com/users/seanttaylor/following{/other_user}","gists_url":"https://api.github.com/users/seanttaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/seanttaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanttaylor/subscriptions","organizations_url":"https://api.github.com/users/seanttaylor/orgs","repos_url":"https://api.github.com/users/seanttaylor/repos","events_url":"https://api.github.com/users/seanttaylor/events{/privacy}","received_events_url":"https://api.github.com/users/seanttaylor/received_events","type":"User","site_admin":false},"html_url":"https://github.com/seanttaylor/johannes-cms","description":"REST API for Johannes Content Management System.","fork":false,"url":"https://api.github.com/repos/seanttaylor/johannes-cms","forks_url":"https://api.github.com/repos/seanttaylor/johannes-cms/forks","keys_url":"https://api.github.com/repos/seanttaylor/johannes-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seanttaylor/johannes-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seanttaylor/johannes-cms/teams","hooks_url":"https://api.github.com/repos/seanttaylor/johannes-cms/hooks","issue_events_url":"https://api.github.com/repos/seanttaylor/johannes-cms/issues/events{/number}","events_url":"https://api.github.com/repos/seanttaylor/johannes-cms/events","assignees_url":"https://api.github.com/repos/seanttaylor/johannes-cms/assignees{/user}","branches_url":"https://api.github.com/repos/seanttaylor/johannes-cms/branches{/branch}","tags_url":"https://api.github.com/repos/seanttaylor/johannes-cms/tags","blobs_url":"https://api.github.com/repos/seanttaylor/johannes-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seanttaylor/johannes-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seanttaylor/johannes-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/seanttaylor/johannes-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seanttaylor/johannes-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/seanttaylor/johannes-cms/languages","stargazers_url":"https://api.github.com/repos/seanttaylor/johannes-cms/stargazers","contributors_url":"https://api.github.com/repos/seanttaylor/johannes-cms/contributors","subscribers_url":"https://api.github.com/repos/seanttaylor/johannes-cms/subscribers","subscription_url":"https://api.github.com/repos/seanttaylor/johannes-cms/subscription","commits_url":"https://api.github.com/repos/seanttaylor/johannes-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/seanttaylor/johannes-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/seanttaylor/johannes-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/seanttaylor/johannes-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/seanttaylor/johannes-cms/contents/{+path}","compare_url":"https://api.github.com/repos/seanttaylor/johannes-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seanttaylor/johannes-cms/merges","archive_url":"https://api.github.com/repos/seanttaylor/johannes-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seanttaylor/johannes-cms/downloads","issues_url":"https://api.github.com/repos/seanttaylor/johannes-cms/issues{/number}","pulls_url":"https://api.github.com/repos/seanttaylor/johannes-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/seanttaylor/johannes-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/seanttaylor/johannes-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seanttaylor/johannes-cms/labels{/name}","releases_url":"https://api.github.com/repos/seanttaylor/johannes-cms/releases{/id}","deployments_url":"https://api.github.com/repos/seanttaylor/johannes-cms/deployments","created_at":"2018-08-29T00:19:10Z","updated_at":"2018-09-25T17:40:55Z","pushed_at":"2018-09-26T01:48:25Z","git_url":"git://github.com/seanttaylor/johannes-cms.git","ssh_url":"git@github.com:seanttaylor/johannes-cms.git","clone_url":"https://github.com/seanttaylor/johannes-cms.git","svn_url":"https://github.com/seanttaylor/johannes-cms","homepage":"","size":1221,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seanttaylor/johannes-cms/pulls/10"},"html":{"href":"https://github.com/seanttaylor/johannes-cms/pull/10"},"issue":{"href":"https://api.github.com/repos/seanttaylor/johannes-cms/issues/10"},"comments":{"href":"https://api.github.com/repos/seanttaylor/johannes-cms/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/seanttaylor/johannes-cms/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/seanttaylor/johannes-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seanttaylor/johannes-cms/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/seanttaylor/johannes-cms/statuses/c1e7e4c63ed611792f9ebf46bbf3eb448110bd57"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"seanttaylor","id":8403573,"node_id":"MDQ6VXNlcjg0MDM1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/8403573?v=4","gravatar_id":"","url":"https://api.github.com/users/seanttaylor","html_url":"https://github.com/seanttaylor","followers_url":"https://api.github.com/users/seanttaylor/followers","following_url":"https://api.github.com/users/seanttaylor/following{/other_user}","gists_url":"https://api.github.com/users/seanttaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/seanttaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanttaylor/subscriptions","organizations_url":"https://api.github.com/users/seanttaylor/orgs","repos_url":"https://api.github.com/users/seanttaylor/repos","events_url":"https://api.github.com/users/seanttaylor/events{/privacy}","received_events_url":"https://api.github.com/users/seanttaylor/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":110,"deletions":9,"changed_files":10}}
{"actor":{"display_login":"seanttaylor"}}