{"action":"created","comment":{"url":"https://api.github.com/repos/marmelab/restful.js/pulls/comments/33364044","id":33364044,"diff_hunk":"@@ -205,8 +205,10 @@ Restful.js exposes similar methods on collections, members and entities. The nam\n * `patch ( id, data [, headers ] )`: Patch a member in a collection. Returns a promise with the response.\n * `head ( id, [, headers ] )`: Perform a HEAD request on a member in a collection. Returns a promise with the response.\n * `url ()`: Get the collection url.\n-* `addResponseInterceptor ( interceptor )`: Add a response interceptor.\n+* `addResponseInterceptor ( interceptor )`: Add a response interceptor. You can only alter data and headers.\n * `addRequestInterceptor ( interceptor )`: Add a request interceptor.\n+* `addFullResponseInterceptor ( interceptor )`: Add a full response interceptor. You can alter data and headers.","path":"README.md","position":7,"original_position":7,"commit_id":"5dad85ff7995bf346db6272163e71d71ff47c3e3","original_commit_id":"5dad85ff7995bf346db6272163e71d71ff47c3e3","user":{"login":"jeromemacias","id":582446,"avatar_url":"https://avatars.githubusercontent.com/u/582446?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromemacias","html_url":"https://github.com/jeromemacias","followers_url":"https://api.github.com/users/jeromemacias/followers","following_url":"https://api.github.com/users/jeromemacias/following{/other_user}","gists_url":"https://api.github.com/users/jeromemacias/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromemacias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromemacias/subscriptions","organizations_url":"https://api.github.com/users/jeromemacias/orgs","repos_url":"https://api.github.com/users/jeromemacias/repos","events_url":"https://api.github.com/users/jeromemacias/events{/privacy}","received_events_url":"https://api.github.com/users/jeromemacias/received_events","type":"User","site_admin":false},"body":"One interceptor is executed by `axios`, the other by the `restful.js` library, and the usage is clearer on the `restful.js` one, no magic modification. \r\nBut in fact, there is no real difference, I wasn't see the comment in the documentation before starting the `fullResponseInterceptor`.","created_at":"2015-06-26T15:05:26Z","updated_at":"2015-06-26T15:05:26Z","html_url":"https://github.com/marmelab/restful.js/pull/32#discussion_r33364044","pull_request_url":"https://api.github.com/repos/marmelab/restful.js/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/marmelab/restful.js/pulls/comments/33364044"},"html":{"href":"https://github.com/marmelab/restful.js/pull/32#discussion_r33364044"},"pull_request":{"href":"https://api.github.com/repos/marmelab/restful.js/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/marmelab/restful.js/pulls/32","id":37802050,"html_url":"https://github.com/marmelab/restful.js/pull/32","diff_url":"https://github.com/marmelab/restful.js/pull/32.diff","patch_url":"https://github.com/marmelab/restful.js/pull/32.patch","issue_url":"https://api.github.com/repos/marmelab/restful.js/issues/32","number":32,"state":"open","locked":false,"title":"[RFR] Implement full(Request|Response)Interceptors to be able to alter url, params, headers and/or data","user":{"login":"jeromemacias","id":582446,"avatar_url":"https://avatars.githubusercontent.com/u/582446?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromemacias","html_url":"https://github.com/jeromemacias","followers_url":"https://api.github.com/users/jeromemacias/followers","following_url":"https://api.github.com/users/jeromemacias/following{/other_user}","gists_url":"https://api.github.com/users/jeromemacias/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromemacias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromemacias/subscriptions","organizations_url":"https://api.github.com/users/jeromemacias/orgs","repos_url":"https://api.github.com/users/jeromemacias/repos","events_url":"https://api.github.com/users/jeromemacias/events{/privacy}","received_events_url":"https://api.github.com/users/jeromemacias/received_events","type":"User","site_admin":false},"body":"* [x] Implement `addFullRequestInterceptor`\r\n* [x] Implement `addFullResponseInterceptor`\r\n* [x] Add doc ","created_at":"2015-06-16T14:39:58Z","updated_at":"2015-06-26T15:05:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6fb166ccb9ae89ccefcc28329d0c989d6031c95","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marmelab/restful.js/pulls/32/commits","review_comments_url":"https://api.github.com/repos/marmelab/restful.js/pulls/32/comments","review_comment_url":"https://api.github.com/repos/marmelab/restful.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marmelab/restful.js/issues/32/comments","statuses_url":"https://api.github.com/repos/marmelab/restful.js/statuses/5dad85ff7995bf346db6272163e71d71ff47c3e3","head":{"label":"marmelab:full_request_interceptor","ref":"full_request_interceptor","sha":"5dad85ff7995bf346db6272163e71d71ff47c3e3","user":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"repo":{"id":29588481,"name":"restful.js","full_name":"marmelab/restful.js","owner":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marmelab/restful.js","description":"A pure JS client for interacting with server-side RESTful resources. Think Restangular without Angular.","fork":false,"url":"https://api.github.com/repos/marmelab/restful.js","forks_url":"https://api.github.com/repos/marmelab/restful.js/forks","keys_url":"https://api.github.com/repos/marmelab/restful.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marmelab/restful.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marmelab/restful.js/teams","hooks_url":"https://api.github.com/repos/marmelab/restful.js/hooks","issue_events_url":"https://api.github.com/repos/marmelab/restful.js/issues/events{/number}","events_url":"https://api.github.com/repos/marmelab/restful.js/events","assignees_url":"https://api.github.com/repos/marmelab/restful.js/assignees{/user}","branches_url":"https://api.github.com/repos/marmelab/restful.js/branches{/branch}","tags_url":"https://api.github.com/repos/marmelab/restful.js/tags","blobs_url":"https://api.github.com/repos/marmelab/restful.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marmelab/restful.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marmelab/restful.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/marmelab/restful.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marmelab/restful.js/statuses/{sha}","languages_url":"https://api.github.com/repos/marmelab/restful.js/languages","stargazers_url":"https://api.github.com/repos/marmelab/restful.js/stargazers","contributors_url":"https://api.github.com/repos/marmelab/restful.js/contributors","subscribers_url":"https://api.github.com/repos/marmelab/restful.js/subscribers","subscription_url":"https://api.github.com/repos/marmelab/restful.js/subscription","commits_url":"https://api.github.com/repos/marmelab/restful.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/marmelab/restful.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/marmelab/restful.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/marmelab/restful.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/marmelab/restful.js/contents/{+path}","compare_url":"https://api.github.com/repos/marmelab/restful.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marmelab/restful.js/merges","archive_url":"https://api.github.com/repos/marmelab/restful.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marmelab/restful.js/downloads","issues_url":"https://api.github.com/repos/marmelab/restful.js/issues{/number}","pulls_url":"https://api.github.com/repos/marmelab/restful.js/pulls{/number}","milestones_url":"https://api.github.com/repos/marmelab/restful.js/milestones{/number}","notifications_url":"https://api.github.com/repos/marmelab/restful.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marmelab/restful.js/labels{/name}","releases_url":"https://api.github.com/repos/marmelab/restful.js/releases{/id}","created_at":"2015-01-21T12:30:03Z","updated_at":"2015-06-25T20:03:35Z","pushed_at":"2015-06-26T13:17:06Z","git_url":"git://github.com/marmelab/restful.js.git","ssh_url":"git@github.com:marmelab/restful.js.git","clone_url":"https://github.com/marmelab/restful.js.git","svn_url":"https://github.com/marmelab/restful.js","homepage":null,"size":546,"stargazers_count":153,"watchers_count":153,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":13,"forks":14,"open_issues":13,"watchers":153,"default_branch":"master"}},"base":{"label":"marmelab:master","ref":"master","sha":"0caf76b51d6f0832224a6845fefaf8731a689128","user":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"repo":{"id":29588481,"name":"restful.js","full_name":"marmelab/restful.js","owner":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marmelab/restful.js","description":"A pure JS client for interacting with server-side RESTful resources. Think Restangular without Angular.","fork":false,"url":"https://api.github.com/repos/marmelab/restful.js","forks_url":"https://api.github.com/repos/marmelab/restful.js/forks","keys_url":"https://api.github.com/repos/marmelab/restful.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marmelab/restful.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marmelab/restful.js/teams","hooks_url":"https://api.github.com/repos/marmelab/restful.js/hooks","issue_events_url":"https://api.github.com/repos/marmelab/restful.js/issues/events{/number}","events_url":"https://api.github.com/repos/marmelab/restful.js/events","assignees_url":"https://api.github.com/repos/marmelab/restful.js/assignees{/user}","branches_url":"https://api.github.com/repos/marmelab/restful.js/branches{/branch}","tags_url":"https://api.github.com/repos/marmelab/restful.js/tags","blobs_url":"https://api.github.com/repos/marmelab/restful.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marmelab/restful.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marmelab/restful.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/marmelab/restful.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marmelab/restful.js/statuses/{sha}","languages_url":"https://api.github.com/repos/marmelab/restful.js/languages","stargazers_url":"https://api.github.com/repos/marmelab/restful.js/stargazers","contributors_url":"https://api.github.com/repos/marmelab/restful.js/contributors","subscribers_url":"https://api.github.com/repos/marmelab/restful.js/subscribers","subscription_url":"https://api.github.com/repos/marmelab/restful.js/subscription","commits_url":"https://api.github.com/repos/marmelab/restful.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/marmelab/restful.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/marmelab/restful.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/marmelab/restful.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/marmelab/restful.js/contents/{+path}","compare_url":"https://api.github.com/repos/marmelab/restful.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marmelab/restful.js/merges","archive_url":"https://api.github.com/repos/marmelab/restful.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marmelab/restful.js/downloads","issues_url":"https://api.github.com/repos/marmelab/restful.js/issues{/number}","pulls_url":"https://api.github.com/repos/marmelab/restful.js/pulls{/number}","milestones_url":"https://api.github.com/repos/marmelab/restful.js/milestones{/number}","notifications_url":"https://api.github.com/repos/marmelab/restful.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marmelab/restful.js/labels{/name}","releases_url":"https://api.github.com/repos/marmelab/restful.js/releases{/id}","created_at":"2015-01-21T12:30:03Z","updated_at":"2015-06-25T20:03:35Z","pushed_at":"2015-06-26T13:17:06Z","git_url":"git://github.com/marmelab/restful.js.git","ssh_url":"git@github.com:marmelab/restful.js.git","clone_url":"https://github.com/marmelab/restful.js.git","svn_url":"https://github.com/marmelab/restful.js","homepage":null,"size":546,"stargazers_count":153,"watchers_count":153,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":13,"forks":14,"open_issues":13,"watchers":153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marmelab/restful.js/pulls/32"},"html":{"href":"https://github.com/marmelab/restful.js/pull/32"},"issue":{"href":"https://api.github.com/repos/marmelab/restful.js/issues/32"},"comments":{"href":"https://api.github.com/repos/marmelab/restful.js/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/marmelab/restful.js/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/marmelab/restful.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marmelab/restful.js/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/marmelab/restful.js/statuses/5dad85ff7995bf346db6272163e71d71ff47c3e3"}}}}