{"action":"created","comment":{"url":"https://api.github.com/repos/mdsol/farscape/pulls/comments/56394838","id":56394838,"diff_hunk":"@@ -23,8 +23,12 @@ def invoke(args={})\n       call_options[:url] = @transition.uri\n       call_options[:method] = @transition.interface_method\n       call_options[:headers] = @agent.get_accept_header(@agent.media_type).merge(options.headers || {})\n-      call_options[:params] = options.parameters unless options.parameters.blank?\n       call_options[:body] = options.attributes unless options.attributes.blank?\n+      if @transition.interface_method.to_s.downcase == 'get'\n+        call_options[:params] = options.parameters unless options.parameters.blank?\n+      else\n+        call_options[:body] = (call_options[:body] || {}).merge(options.parameters) unless options.parameters.blank?","path":"lib/farscape/transition.rb","position":9,"original_position":9,"commit_id":"ce28ecec75144c16a7e61d401063e34f12a1079d","original_commit_id":"ce28ecec75144c16a7e61d401063e34f12a1079d","user":{"login":"HonoreDB","id":1795573,"avatar_url":"https://avatars.githubusercontent.com/u/1795573?v=3","gravatar_id":"","url":"https://api.github.com/users/HonoreDB","html_url":"https://github.com/HonoreDB","followers_url":"https://api.github.com/users/HonoreDB/followers","following_url":"https://api.github.com/users/HonoreDB/following{/other_user}","gists_url":"https://api.github.com/users/HonoreDB/gists{/gist_id}","starred_url":"https://api.github.com/users/HonoreDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HonoreDB/subscriptions","organizations_url":"https://api.github.com/users/HonoreDB/orgs","repos_url":"https://api.github.com/users/HonoreDB/repos","events_url":"https://api.github.com/users/HonoreDB/events{/privacy}","received_events_url":"https://api.github.com/users/HonoreDB/received_events","type":"User","site_admin":false},"body":"I'm not clear on why we need this line. Why can't you just pass the body in using attributes and leave params empty on a POST?","created_at":"2016-03-16T18:59:52Z","updated_at":"2016-03-16T18:59:52Z","html_url":"https://github.com/mdsol/farscape/pull/53#discussion_r56394838","pull_request_url":"https://api.github.com/repos/mdsol/farscape/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/comments/56394838"},"html":{"href":"https://github.com/mdsol/farscape/pull/53#discussion_r56394838"},"pull_request":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/mdsol/farscape/pulls/53","id":62522915,"html_url":"https://github.com/mdsol/farscape/pull/53","diff_url":"https://github.com/mdsol/farscape/pull/53.diff","patch_url":"https://github.com/mdsol/farscape/pull/53.patch","issue_url":"https://api.github.com/repos/mdsol/farscape/issues/53","number":53,"state":"open","locked":false,"title":"Add POST method support","user":{"login":"ykitamura-mdsol","id":16286071,"avatar_url":"https://avatars.githubusercontent.com/u/16286071?v=3","gravatar_id":"","url":"https://api.github.com/users/ykitamura-mdsol","html_url":"https://github.com/ykitamura-mdsol","followers_url":"https://api.github.com/users/ykitamura-mdsol/followers","following_url":"https://api.github.com/users/ykitamura-mdsol/following{/other_user}","gists_url":"https://api.github.com/users/ykitamura-mdsol/gists{/gist_id}","starred_url":"https://api.github.com/users/ykitamura-mdsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ykitamura-mdsol/subscriptions","organizations_url":"https://api.github.com/users/ykitamura-mdsol/orgs","repos_url":"https://api.github.com/users/ykitamura-mdsol/repos","events_url":"https://api.github.com/users/ykitamura-mdsol/events{/privacy}","received_events_url":"https://api.github.com/users/ykitamura-mdsol/received_events","type":"User","site_admin":false},"body":"Modify to be able to handle POST method\r\n\r\n@mdsol/team-10 please review","created_at":"2016-03-11T10:19:11Z","updated_at":"2016-03-16T18:59:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b6d2bf714e668b16b7f2d0f54ceabc98045974f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mdsol/farscape/pulls/53/commits","review_comments_url":"https://api.github.com/repos/mdsol/farscape/pulls/53/comments","review_comment_url":"https://api.github.com/repos/mdsol/farscape/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mdsol/farscape/issues/53/comments","statuses_url":"https://api.github.com/repos/mdsol/farscape/statuses/ce28ecec75144c16a7e61d401063e34f12a1079d","head":{"label":"mdsol:feature/add_post_support","ref":"feature/add_post_support","sha":"ce28ecec75144c16a7e61d401063e34f12a1079d","user":{"login":"mdsol","id":171103,"avatar_url":"https://avatars.githubusercontent.com/u/171103?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsol","html_url":"https://github.com/mdsol","followers_url":"https://api.github.com/users/mdsol/followers","following_url":"https://api.github.com/users/mdsol/following{/other_user}","gists_url":"https://api.github.com/users/mdsol/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsol/subscriptions","organizations_url":"https://api.github.com/users/mdsol/orgs","repos_url":"https://api.github.com/users/mdsol/repos","events_url":"https://api.github.com/users/mdsol/events{/privacy}","received_events_url":"https://api.github.com/users/mdsol/received_events","type":"Organization","site_admin":false},"repo":{"id":13870229,"name":"farscape","full_name":"mdsol/farscape","owner":{"login":"mdsol","id":171103,"avatar_url":"https://avatars.githubusercontent.com/u/171103?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsol","html_url":"https://github.com/mdsol","followers_url":"https://api.github.com/users/mdsol/followers","following_url":"https://api.github.com/users/mdsol/following{/other_user}","gists_url":"https://api.github.com/users/mdsol/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsol/subscriptions","organizations_url":"https://api.github.com/users/mdsol/orgs","repos_url":"https://api.github.com/users/mdsol/repos","events_url":"https://api.github.com/users/mdsol/events{/privacy}","received_events_url":"https://api.github.com/users/mdsol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mdsol/farscape","description":"hypermedia agent","fork":false,"url":"https://api.github.com/repos/mdsol/farscape","forks_url":"https://api.github.com/repos/mdsol/farscape/forks","keys_url":"https://api.github.com/repos/mdsol/farscape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdsol/farscape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdsol/farscape/teams","hooks_url":"https://api.github.com/repos/mdsol/farscape/hooks","issue_events_url":"https://api.github.com/repos/mdsol/farscape/issues/events{/number}","events_url":"https://api.github.com/repos/mdsol/farscape/events","assignees_url":"https://api.github.com/repos/mdsol/farscape/assignees{/user}","branches_url":"https://api.github.com/repos/mdsol/farscape/branches{/branch}","tags_url":"https://api.github.com/repos/mdsol/farscape/tags","blobs_url":"https://api.github.com/repos/mdsol/farscape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdsol/farscape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdsol/farscape/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdsol/farscape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdsol/farscape/statuses/{sha}","languages_url":"https://api.github.com/repos/mdsol/farscape/languages","stargazers_url":"https://api.github.com/repos/mdsol/farscape/stargazers","contributors_url":"https://api.github.com/repos/mdsol/farscape/contributors","subscribers_url":"https://api.github.com/repos/mdsol/farscape/subscribers","subscription_url":"https://api.github.com/repos/mdsol/farscape/subscription","commits_url":"https://api.github.com/repos/mdsol/farscape/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdsol/farscape/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdsol/farscape/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdsol/farscape/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdsol/farscape/contents/{+path}","compare_url":"https://api.github.com/repos/mdsol/farscape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdsol/farscape/merges","archive_url":"https://api.github.com/repos/mdsol/farscape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdsol/farscape/downloads","issues_url":"https://api.github.com/repos/mdsol/farscape/issues{/number}","pulls_url":"https://api.github.com/repos/mdsol/farscape/pulls{/number}","milestones_url":"https://api.github.com/repos/mdsol/farscape/milestones{/number}","notifications_url":"https://api.github.com/repos/mdsol/farscape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdsol/farscape/labels{/name}","releases_url":"https://api.github.com/repos/mdsol/farscape/releases{/id}","deployments_url":"https://api.github.com/repos/mdsol/farscape/deployments","created_at":"2013-10-25T19:31:23Z","updated_at":"2016-03-10T07:46:48Z","pushed_at":"2016-03-11T10:19:11Z","git_url":"git://github.com/mdsol/farscape.git","ssh_url":"git@github.com:mdsol/farscape.git","clone_url":"https://github.com/mdsol/farscape.git","svn_url":"https://github.com/mdsol/farscape","homepage":null,"size":223,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":2,"default_branch":"develop"}},"base":{"label":"mdsol:develop","ref":"develop","sha":"ead0bb940a77285dcfbc8781c9dea503005b005b","user":{"login":"mdsol","id":171103,"avatar_url":"https://avatars.githubusercontent.com/u/171103?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsol","html_url":"https://github.com/mdsol","followers_url":"https://api.github.com/users/mdsol/followers","following_url":"https://api.github.com/users/mdsol/following{/other_user}","gists_url":"https://api.github.com/users/mdsol/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsol/subscriptions","organizations_url":"https://api.github.com/users/mdsol/orgs","repos_url":"https://api.github.com/users/mdsol/repos","events_url":"https://api.github.com/users/mdsol/events{/privacy}","received_events_url":"https://api.github.com/users/mdsol/received_events","type":"Organization","site_admin":false},"repo":{"id":13870229,"name":"farscape","full_name":"mdsol/farscape","owner":{"login":"mdsol","id":171103,"avatar_url":"https://avatars.githubusercontent.com/u/171103?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsol","html_url":"https://github.com/mdsol","followers_url":"https://api.github.com/users/mdsol/followers","following_url":"https://api.github.com/users/mdsol/following{/other_user}","gists_url":"https://api.github.com/users/mdsol/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsol/subscriptions","organizations_url":"https://api.github.com/users/mdsol/orgs","repos_url":"https://api.github.com/users/mdsol/repos","events_url":"https://api.github.com/users/mdsol/events{/privacy}","received_events_url":"https://api.github.com/users/mdsol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mdsol/farscape","description":"hypermedia agent","fork":false,"url":"https://api.github.com/repos/mdsol/farscape","forks_url":"https://api.github.com/repos/mdsol/farscape/forks","keys_url":"https://api.github.com/repos/mdsol/farscape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdsol/farscape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdsol/farscape/teams","hooks_url":"https://api.github.com/repos/mdsol/farscape/hooks","issue_events_url":"https://api.github.com/repos/mdsol/farscape/issues/events{/number}","events_url":"https://api.github.com/repos/mdsol/farscape/events","assignees_url":"https://api.github.com/repos/mdsol/farscape/assignees{/user}","branches_url":"https://api.github.com/repos/mdsol/farscape/branches{/branch}","tags_url":"https://api.github.com/repos/mdsol/farscape/tags","blobs_url":"https://api.github.com/repos/mdsol/farscape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdsol/farscape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdsol/farscape/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdsol/farscape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdsol/farscape/statuses/{sha}","languages_url":"https://api.github.com/repos/mdsol/farscape/languages","stargazers_url":"https://api.github.com/repos/mdsol/farscape/stargazers","contributors_url":"https://api.github.com/repos/mdsol/farscape/contributors","subscribers_url":"https://api.github.com/repos/mdsol/farscape/subscribers","subscription_url":"https://api.github.com/repos/mdsol/farscape/subscription","commits_url":"https://api.github.com/repos/mdsol/farscape/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdsol/farscape/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdsol/farscape/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdsol/farscape/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdsol/farscape/contents/{+path}","compare_url":"https://api.github.com/repos/mdsol/farscape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdsol/farscape/merges","archive_url":"https://api.github.com/repos/mdsol/farscape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdsol/farscape/downloads","issues_url":"https://api.github.com/repos/mdsol/farscape/issues{/number}","pulls_url":"https://api.github.com/repos/mdsol/farscape/pulls{/number}","milestones_url":"https://api.github.com/repos/mdsol/farscape/milestones{/number}","notifications_url":"https://api.github.com/repos/mdsol/farscape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdsol/farscape/labels{/name}","releases_url":"https://api.github.com/repos/mdsol/farscape/releases{/id}","deployments_url":"https://api.github.com/repos/mdsol/farscape/deployments","created_at":"2013-10-25T19:31:23Z","updated_at":"2016-03-10T07:46:48Z","pushed_at":"2016-03-11T10:19:11Z","git_url":"git://github.com/mdsol/farscape.git","ssh_url":"git@github.com:mdsol/farscape.git","clone_url":"https://github.com/mdsol/farscape.git","svn_url":"https://github.com/mdsol/farscape","homepage":null,"size":223,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/53"},"html":{"href":"https://github.com/mdsol/farscape/pull/53"},"issue":{"href":"https://api.github.com/repos/mdsol/farscape/issues/53"},"comments":{"href":"https://api.github.com/repos/mdsol/farscape/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mdsol/farscape/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/mdsol/farscape/statuses/ce28ecec75144c16a7e61d401063e34f12a1079d"}}}}