{"action":"opened","number":17,"pull_request":{"url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/pulls/17","id":44305004,"html_url":"https://github.com/UW-Madison-DoIT/json-proxy-service/pull/17","diff_url":"https://github.com/UW-Madison-DoIT/json-proxy-service/pull/17.diff","patch_url":"https://github.com/UW-Madison-DoIT/json-proxy-service/pull/17.patch","issue_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/issues/17","number":17,"state":"open","locked":false,"title":"Forward Response Content AND Status","user":{"login":"ctcudd","id":3977194,"avatar_url":"https://avatars.githubusercontent.com/u/3977194?v=3","gravatar_id":"","url":"https://api.github.com/users/ctcudd","html_url":"https://github.com/ctcudd","followers_url":"https://api.github.com/users/ctcudd/followers","following_url":"https://api.github.com/users/ctcudd/following{/other_user}","gists_url":"https://api.github.com/users/ctcudd/gists{/gist_id}","starred_url":"https://api.github.com/users/ctcudd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctcudd/subscriptions","organizations_url":"https://api.github.com/users/ctcudd/orgs","repos_url":"https://api.github.com/users/ctcudd/repos","events_url":"https://api.github.com/users/ctcudd/events{/privacy}","received_events_url":"https://api.github.com/users/ctcudd/received_events","type":"User","site_admin":false},"body":"Modify service and dao layers to return a ResponseEntity<Object> instead of just an Object.\r\n\r\nReturning an object is not sufficient as many REST api calls use HTTP status alone to indicate the success, or failure, of an operation (i.e. 204 No Content).\r\n\r\nI've also added RestProxyResponseErrorHandler, a ResponseErrorHandler which is always used and does nothing, but it does highlight some important assumptions:\r\nRestProxy's sole responsibility is to relay requests and responses.\r\nIt's up to the client to deal with responses, whether they are successes or errors.\r\n\r\nRestProxyServiceImpl has also been modified to allow any content type and to only attach a body when the request has a content length greater than zero.","created_at":"2015-09-06T15:55:42Z","updated_at":"2015-09-06T15:55:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/pulls/17/commits","review_comments_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/pulls/17/comments","review_comment_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/issues/17/comments","statuses_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/statuses/97f6c811321d288887973aaa00f77154646b621d","head":{"label":"ctcudd:forward_errors","ref":"forward_errors","sha":"97f6c811321d288887973aaa00f77154646b621d","user":{"login":"ctcudd","id":3977194,"avatar_url":"https://avatars.githubusercontent.com/u/3977194?v=3","gravatar_id":"","url":"https://api.github.com/users/ctcudd","html_url":"https://github.com/ctcudd","followers_url":"https://api.github.com/users/ctcudd/followers","following_url":"https://api.github.com/users/ctcudd/following{/other_user}","gists_url":"https://api.github.com/users/ctcudd/gists{/gist_id}","starred_url":"https://api.github.com/users/ctcudd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctcudd/subscriptions","organizations_url":"https://api.github.com/users/ctcudd/orgs","repos_url":"https://api.github.com/users/ctcudd/repos","events_url":"https://api.github.com/users/ctcudd/events{/privacy}","received_events_url":"https://api.github.com/users/ctcudd/received_events","type":"User","site_admin":false},"repo":{"id":40412598,"name":"json-proxy-service","full_name":"ctcudd/json-proxy-service","owner":{"login":"ctcudd","id":3977194,"avatar_url":"https://avatars.githubusercontent.com/u/3977194?v=3","gravatar_id":"","url":"https://api.github.com/users/ctcudd","html_url":"https://github.com/ctcudd","followers_url":"https://api.github.com/users/ctcudd/followers","following_url":"https://api.github.com/users/ctcudd/following{/other_user}","gists_url":"https://api.github.com/users/ctcudd/gists{/gist_id}","starred_url":"https://api.github.com/users/ctcudd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctcudd/subscriptions","organizations_url":"https://api.github.com/users/ctcudd/orgs","repos_url":"https://api.github.com/users/ctcudd/repos","events_url":"https://api.github.com/users/ctcudd/events{/privacy}","received_events_url":"https://api.github.com/users/ctcudd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ctcudd/json-proxy-service","description":"A Simple server side JSON proxy service written in Java","fork":true,"url":"https://api.github.com/repos/ctcudd/json-proxy-service","forks_url":"https://api.github.com/repos/ctcudd/json-proxy-service/forks","keys_url":"https://api.github.com/repos/ctcudd/json-proxy-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctcudd/json-proxy-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctcudd/json-proxy-service/teams","hooks_url":"https://api.github.com/repos/ctcudd/json-proxy-service/hooks","issue_events_url":"https://api.github.com/repos/ctcudd/json-proxy-service/issues/events{/number}","events_url":"https://api.github.com/repos/ctcudd/json-proxy-service/events","assignees_url":"https://api.github.com/repos/ctcudd/json-proxy-service/assignees{/user}","branches_url":"https://api.github.com/repos/ctcudd/json-proxy-service/branches{/branch}","tags_url":"https://api.github.com/repos/ctcudd/json-proxy-service/tags","blobs_url":"https://api.github.com/repos/ctcudd/json-proxy-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctcudd/json-proxy-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctcudd/json-proxy-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctcudd/json-proxy-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctcudd/json-proxy-service/statuses/{sha}","languages_url":"https://api.github.com/repos/ctcudd/json-proxy-service/languages","stargazers_url":"https://api.github.com/repos/ctcudd/json-proxy-service/stargazers","contributors_url":"https://api.github.com/repos/ctcudd/json-proxy-service/contributors","subscribers_url":"https://api.github.com/repos/ctcudd/json-proxy-service/subscribers","subscription_url":"https://api.github.com/repos/ctcudd/json-proxy-service/subscription","commits_url":"https://api.github.com/repos/ctcudd/json-proxy-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctcudd/json-proxy-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctcudd/json-proxy-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctcudd/json-proxy-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/ctcudd/json-proxy-service/contents/{+path}","compare_url":"https://api.github.com/repos/ctcudd/json-proxy-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctcudd/json-proxy-service/merges","archive_url":"https://api.github.com/repos/ctcudd/json-proxy-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctcudd/json-proxy-service/downloads","issues_url":"https://api.github.com/repos/ctcudd/json-proxy-service/issues{/number}","pulls_url":"https://api.github.com/repos/ctcudd/json-proxy-service/pulls{/number}","milestones_url":"https://api.github.com/repos/ctcudd/json-proxy-service/milestones{/number}","notifications_url":"https://api.github.com/repos/ctcudd/json-proxy-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctcudd/json-proxy-service/labels{/name}","releases_url":"https://api.github.com/repos/ctcudd/json-proxy-service/releases{/id}","created_at":"2015-08-08T18:30:24Z","updated_at":"2015-08-08T18:30:24Z","pushed_at":"2015-09-06T15:49:56Z","git_url":"git://github.com/ctcudd/json-proxy-service.git","ssh_url":"git@github.com:ctcudd/json-proxy-service.git","clone_url":"https://github.com/ctcudd/json-proxy-service.git","svn_url":"https://github.com/ctcudd/json-proxy-service","homepage":null,"size":142,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"UW-Madison-DoIT:master","ref":"master","sha":"50d389ac949bf73935a97b88877fccfe7a91eccc","user":{"login":"UW-Madison-DoIT","id":1629635,"avatar_url":"https://avatars.githubusercontent.com/u/1629635?v=3","gravatar_id":"","url":"https://api.github.com/users/UW-Madison-DoIT","html_url":"https://github.com/UW-Madison-DoIT","followers_url":"https://api.github.com/users/UW-Madison-DoIT/followers","following_url":"https://api.github.com/users/UW-Madison-DoIT/following{/other_user}","gists_url":"https://api.github.com/users/UW-Madison-DoIT/gists{/gist_id}","starred_url":"https://api.github.com/users/UW-Madison-DoIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UW-Madison-DoIT/subscriptions","organizations_url":"https://api.github.com/users/UW-Madison-DoIT/orgs","repos_url":"https://api.github.com/users/UW-Madison-DoIT/repos","events_url":"https://api.github.com/users/UW-Madison-DoIT/events{/privacy}","received_events_url":"https://api.github.com/users/UW-Madison-DoIT/received_events","type":"Organization","site_admin":false},"repo":{"id":37548575,"name":"json-proxy-service","full_name":"UW-Madison-DoIT/json-proxy-service","owner":{"login":"UW-Madison-DoIT","id":1629635,"avatar_url":"https://avatars.githubusercontent.com/u/1629635?v=3","gravatar_id":"","url":"https://api.github.com/users/UW-Madison-DoIT","html_url":"https://github.com/UW-Madison-DoIT","followers_url":"https://api.github.com/users/UW-Madison-DoIT/followers","following_url":"https://api.github.com/users/UW-Madison-DoIT/following{/other_user}","gists_url":"https://api.github.com/users/UW-Madison-DoIT/gists{/gist_id}","starred_url":"https://api.github.com/users/UW-Madison-DoIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UW-Madison-DoIT/subscriptions","organizations_url":"https://api.github.com/users/UW-Madison-DoIT/orgs","repos_url":"https://api.github.com/users/UW-Madison-DoIT/repos","events_url":"https://api.github.com/users/UW-Madison-DoIT/events{/privacy}","received_events_url":"https://api.github.com/users/UW-Madison-DoIT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UW-Madison-DoIT/json-proxy-service","description":"A Simple server side JSON proxy service written in Java","fork":false,"url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service","forks_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/forks","keys_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/teams","hooks_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/hooks","issue_events_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/issues/events{/number}","events_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/events","assignees_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/assignees{/user}","branches_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/branches{/branch}","tags_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/tags","blobs_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/statuses/{sha}","languages_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/languages","stargazers_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/stargazers","contributors_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/contributors","subscribers_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/subscribers","subscription_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/subscription","commits_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/contents/{+path}","compare_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/merges","archive_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/downloads","issues_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/issues{/number}","pulls_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/pulls{/number}","milestones_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/milestones{/number}","notifications_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/labels{/name}","releases_url":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/releases{/id}","created_at":"2015-06-16T18:32:29Z","updated_at":"2015-06-16T20:47:06Z","pushed_at":"2015-09-04T01:33:08Z","git_url":"git://github.com/UW-Madison-DoIT/json-proxy-service.git","ssh_url":"git@github.com:UW-Madison-DoIT/json-proxy-service.git","clone_url":"https://github.com/UW-Madison-DoIT/json-proxy-service.git","svn_url":"https://github.com/UW-Madison-DoIT/json-proxy-service","homepage":null,"size":262,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/pulls/17"},"html":{"href":"https://github.com/UW-Madison-DoIT/json-proxy-service/pull/17"},"issue":{"href":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/issues/17"},"comments":{"href":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/UW-Madison-DoIT/json-proxy-service/statuses/97f6c811321d288887973aaa00f77154646b621d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":176,"deletions":43,"changed_files":10}}