{"action":"closed","number":10,"pull_request":{"url":"https://api.github.com/repos/ifwe/monocle-api/pulls/10","id":52589819,"html_url":"https://github.com/ifwe/monocle-api/pull/10","diff_url":"https://github.com/ifwe/monocle-api/pull/10.diff","patch_url":"https://github.com/ifwe/monocle-api/pull/10.patch","issue_url":"https://api.github.com/repos/ifwe/monocle-api/issues/10","number":10,"state":"closed","locked":false,"title":"Allows the resource to be passed into any raw request.","user":{"login":"djvirgen","id":308786,"avatar_url":"https://avatars.githubusercontent.com/u/308786?v=3","gravatar_id":"","url":"https://api.github.com/users/djvirgen","html_url":"https://github.com/djvirgen","followers_url":"https://api.github.com/users/djvirgen/followers","following_url":"https://api.github.com/users/djvirgen/following{/other_user}","gists_url":"https://api.github.com/users/djvirgen/gists{/gist_id}","starred_url":"https://api.github.com/users/djvirgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djvirgen/subscriptions","organizations_url":"https://api.github.com/users/djvirgen/orgs","repos_url":"https://api.github.com/users/djvirgen/repos","events_url":"https://api.github.com/users/djvirgen/events{/privacy}","received_events_url":"https://api.github.com/users/djvirgen/received_events","type":"User","site_admin":false},"body":"**Example**\r\n\r\n```js\r\nvar router = new Router();\r\nvar connection = new Connection(router, httpRequest, httpResponse);\r\n\r\nconnection.get('/users/123')\r\n.then(function(user) {\r\n    // check current username\r\n    assert(user.displayName == 'Hector'); // true\r\n\r\n    // change username\r\n    user.displayName = 'Alex';\r\n\r\n    // submit the updated resource\r\n    connection.patch('/users/123', {\r\n        resource: user\r\n    }).then(function(updatedUser) {\r\n        // very it was updated\r\n        assert(user.displayName == 'Alex'); // true\r\n    });\r\n});\r\n```","created_at":"2015-12-03T20:45:48Z","updated_at":"2015-12-03T21:20:59Z","closed_at":"2015-12-03T21:20:59Z","merged_at":"2015-12-03T21:20:59Z","merge_commit_sha":"cbacdbcf8e38267f6a74fa8525e91f86802a223c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ifwe/monocle-api/pulls/10/commits","review_comments_url":"https://api.github.com/repos/ifwe/monocle-api/pulls/10/comments","review_comment_url":"https://api.github.com/repos/ifwe/monocle-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ifwe/monocle-api/issues/10/comments","statuses_url":"https://api.github.com/repos/ifwe/monocle-api/statuses/a9aa1663e352ae6f9f5226d4c4722e20c3437aeb","head":{"label":"ifwe:pass_resource","ref":"pass_resource","sha":"a9aa1663e352ae6f9f5226d4c4722e20c3437aeb","user":{"login":"ifwe","id":8762479,"avatar_url":"https://avatars.githubusercontent.com/u/8762479?v=3","gravatar_id":"","url":"https://api.github.com/users/ifwe","html_url":"https://github.com/ifwe","followers_url":"https://api.github.com/users/ifwe/followers","following_url":"https://api.github.com/users/ifwe/following{/other_user}","gists_url":"https://api.github.com/users/ifwe/gists{/gist_id}","starred_url":"https://api.github.com/users/ifwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifwe/subscriptions","organizations_url":"https://api.github.com/users/ifwe/orgs","repos_url":"https://api.github.com/users/ifwe/repos","events_url":"https://api.github.com/users/ifwe/events{/privacy}","received_events_url":"https://api.github.com/users/ifwe/received_events","type":"Organization","site_admin":false},"repo":{"id":41873773,"name":"monocle-api","full_name":"ifwe/monocle-api","owner":{"login":"ifwe","id":8762479,"avatar_url":"https://avatars.githubusercontent.com/u/8762479?v=3","gravatar_id":"","url":"https://api.github.com/users/ifwe","html_url":"https://github.com/ifwe","followers_url":"https://api.github.com/users/ifwe/followers","following_url":"https://api.github.com/users/ifwe/following{/other_user}","gists_url":"https://api.github.com/users/ifwe/gists{/gist_id}","starred_url":"https://api.github.com/users/ifwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifwe/subscriptions","organizations_url":"https://api.github.com/users/ifwe/orgs","repos_url":"https://api.github.com/users/ifwe/repos","events_url":"https://api.github.com/users/ifwe/events{/privacy}","received_events_url":"https://api.github.com/users/ifwe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ifwe/monocle-api","description":"API router focused on consistency, flexibility, and performance.","fork":false,"url":"https://api.github.com/repos/ifwe/monocle-api","forks_url":"https://api.github.com/repos/ifwe/monocle-api/forks","keys_url":"https://api.github.com/repos/ifwe/monocle-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ifwe/monocle-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ifwe/monocle-api/teams","hooks_url":"https://api.github.com/repos/ifwe/monocle-api/hooks","issue_events_url":"https://api.github.com/repos/ifwe/monocle-api/issues/events{/number}","events_url":"https://api.github.com/repos/ifwe/monocle-api/events","assignees_url":"https://api.github.com/repos/ifwe/monocle-api/assignees{/user}","branches_url":"https://api.github.com/repos/ifwe/monocle-api/branches{/branch}","tags_url":"https://api.github.com/repos/ifwe/monocle-api/tags","blobs_url":"https://api.github.com/repos/ifwe/monocle-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ifwe/monocle-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ifwe/monocle-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/ifwe/monocle-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ifwe/monocle-api/statuses/{sha}","languages_url":"https://api.github.com/repos/ifwe/monocle-api/languages","stargazers_url":"https://api.github.com/repos/ifwe/monocle-api/stargazers","contributors_url":"https://api.github.com/repos/ifwe/monocle-api/contributors","subscribers_url":"https://api.github.com/repos/ifwe/monocle-api/subscribers","subscription_url":"https://api.github.com/repos/ifwe/monocle-api/subscription","commits_url":"https://api.github.com/repos/ifwe/monocle-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/ifwe/monocle-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/ifwe/monocle-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/ifwe/monocle-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/ifwe/monocle-api/contents/{+path}","compare_url":"https://api.github.com/repos/ifwe/monocle-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ifwe/monocle-api/merges","archive_url":"https://api.github.com/repos/ifwe/monocle-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ifwe/monocle-api/downloads","issues_url":"https://api.github.com/repos/ifwe/monocle-api/issues{/number}","pulls_url":"https://api.github.com/repos/ifwe/monocle-api/pulls{/number}","milestones_url":"https://api.github.com/repos/ifwe/monocle-api/milestones{/number}","notifications_url":"https://api.github.com/repos/ifwe/monocle-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ifwe/monocle-api/labels{/name}","releases_url":"https://api.github.com/repos/ifwe/monocle-api/releases{/id}","created_at":"2015-09-03T17:29:27Z","updated_at":"2015-12-03T20:51:20Z","pushed_at":"2015-12-03T21:20:59Z","git_url":"git://github.com/ifwe/monocle-api.git","ssh_url":"git@github.com:ifwe/monocle-api.git","clone_url":"https://github.com/ifwe/monocle-api.git","svn_url":"https://github.com/ifwe/monocle-api","homepage":null,"size":86,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":5,"default_branch":"master"}},"base":{"label":"ifwe:master","ref":"master","sha":"0fa5fdc29dbe6dc609fc5843bd2d30211d1a1f9a","user":{"login":"ifwe","id":8762479,"avatar_url":"https://avatars.githubusercontent.com/u/8762479?v=3","gravatar_id":"","url":"https://api.github.com/users/ifwe","html_url":"https://github.com/ifwe","followers_url":"https://api.github.com/users/ifwe/followers","following_url":"https://api.github.com/users/ifwe/following{/other_user}","gists_url":"https://api.github.com/users/ifwe/gists{/gist_id}","starred_url":"https://api.github.com/users/ifwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifwe/subscriptions","organizations_url":"https://api.github.com/users/ifwe/orgs","repos_url":"https://api.github.com/users/ifwe/repos","events_url":"https://api.github.com/users/ifwe/events{/privacy}","received_events_url":"https://api.github.com/users/ifwe/received_events","type":"Organization","site_admin":false},"repo":{"id":41873773,"name":"monocle-api","full_name":"ifwe/monocle-api","owner":{"login":"ifwe","id":8762479,"avatar_url":"https://avatars.githubusercontent.com/u/8762479?v=3","gravatar_id":"","url":"https://api.github.com/users/ifwe","html_url":"https://github.com/ifwe","followers_url":"https://api.github.com/users/ifwe/followers","following_url":"https://api.github.com/users/ifwe/following{/other_user}","gists_url":"https://api.github.com/users/ifwe/gists{/gist_id}","starred_url":"https://api.github.com/users/ifwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifwe/subscriptions","organizations_url":"https://api.github.com/users/ifwe/orgs","repos_url":"https://api.github.com/users/ifwe/repos","events_url":"https://api.github.com/users/ifwe/events{/privacy}","received_events_url":"https://api.github.com/users/ifwe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ifwe/monocle-api","description":"API router focused on consistency, flexibility, and performance.","fork":false,"url":"https://api.github.com/repos/ifwe/monocle-api","forks_url":"https://api.github.com/repos/ifwe/monocle-api/forks","keys_url":"https://api.github.com/repos/ifwe/monocle-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ifwe/monocle-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ifwe/monocle-api/teams","hooks_url":"https://api.github.com/repos/ifwe/monocle-api/hooks","issue_events_url":"https://api.github.com/repos/ifwe/monocle-api/issues/events{/number}","events_url":"https://api.github.com/repos/ifwe/monocle-api/events","assignees_url":"https://api.github.com/repos/ifwe/monocle-api/assignees{/user}","branches_url":"https://api.github.com/repos/ifwe/monocle-api/branches{/branch}","tags_url":"https://api.github.com/repos/ifwe/monocle-api/tags","blobs_url":"https://api.github.com/repos/ifwe/monocle-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ifwe/monocle-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ifwe/monocle-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/ifwe/monocle-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ifwe/monocle-api/statuses/{sha}","languages_url":"https://api.github.com/repos/ifwe/monocle-api/languages","stargazers_url":"https://api.github.com/repos/ifwe/monocle-api/stargazers","contributors_url":"https://api.github.com/repos/ifwe/monocle-api/contributors","subscribers_url":"https://api.github.com/repos/ifwe/monocle-api/subscribers","subscription_url":"https://api.github.com/repos/ifwe/monocle-api/subscription","commits_url":"https://api.github.com/repos/ifwe/monocle-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/ifwe/monocle-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/ifwe/monocle-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/ifwe/monocle-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/ifwe/monocle-api/contents/{+path}","compare_url":"https://api.github.com/repos/ifwe/monocle-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ifwe/monocle-api/merges","archive_url":"https://api.github.com/repos/ifwe/monocle-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ifwe/monocle-api/downloads","issues_url":"https://api.github.com/repos/ifwe/monocle-api/issues{/number}","pulls_url":"https://api.github.com/repos/ifwe/monocle-api/pulls{/number}","milestones_url":"https://api.github.com/repos/ifwe/monocle-api/milestones{/number}","notifications_url":"https://api.github.com/repos/ifwe/monocle-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ifwe/monocle-api/labels{/name}","releases_url":"https://api.github.com/repos/ifwe/monocle-api/releases{/id}","created_at":"2015-09-03T17:29:27Z","updated_at":"2015-12-03T20:51:20Z","pushed_at":"2015-12-03T21:20:59Z","git_url":"git://github.com/ifwe/monocle-api.git","ssh_url":"git@github.com:ifwe/monocle-api.git","clone_url":"https://github.com/ifwe/monocle-api.git","svn_url":"https://github.com/ifwe/monocle-api","homepage":null,"size":86,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ifwe/monocle-api/pulls/10"},"html":{"href":"https://github.com/ifwe/monocle-api/pull/10"},"issue":{"href":"https://api.github.com/repos/ifwe/monocle-api/issues/10"},"comments":{"href":"https://api.github.com/repos/ifwe/monocle-api/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/ifwe/monocle-api/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/ifwe/monocle-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ifwe/monocle-api/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/ifwe/monocle-api/statuses/a9aa1663e352ae6f9f5226d4c4722e20c3437aeb"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"djvirgen","id":308786,"avatar_url":"https://avatars.githubusercontent.com/u/308786?v=3","gravatar_id":"","url":"https://api.github.com/users/djvirgen","html_url":"https://github.com/djvirgen","followers_url":"https://api.github.com/users/djvirgen/followers","following_url":"https://api.github.com/users/djvirgen/following{/other_user}","gists_url":"https://api.github.com/users/djvirgen/gists{/gist_id}","starred_url":"https://api.github.com/users/djvirgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djvirgen/subscriptions","organizations_url":"https://api.github.com/users/djvirgen/orgs","repos_url":"https://api.github.com/users/djvirgen/repos","events_url":"https://api.github.com/users/djvirgen/events{/privacy}","received_events_url":"https://api.github.com/users/djvirgen/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":13,"deletions":4,"changed_files":2}}