{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/pulls/9","id":38653205,"html_url":"https://github.com/osgi/osgi.enroute.bundles/pull/9","diff_url":"https://github.com/osgi/osgi.enroute.bundles/pull/9.diff","patch_url":"https://github.com/osgi/osgi.enroute.bundles/pull/9.patch","issue_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/issues/9","number":9,"state":"closed","locked":false,"title":"allow to cast the post/put data as additional parameter in the call instead of using _body() method","user":{"login":"tverbele","id":4587925,"avatar_url":"https://avatars.githubusercontent.com/u/4587925?v=3","gravatar_id":"","url":"https://api.github.com/users/tverbele","html_url":"https://github.com/tverbele","followers_url":"https://api.github.com/users/tverbele/followers","following_url":"https://api.github.com/users/tverbele/following{/other_user}","gists_url":"https://api.github.com/users/tverbele/gists{/gist_id}","starred_url":"https://api.github.com/users/tverbele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tverbele/subscriptions","organizations_url":"https://api.github.com/users/tverbele/orgs","repos_url":"https://api.github.com/users/tverbele/repos","events_url":"https://api.github.com/users/tverbele/events{/privacy}","received_events_url":"https://api.github.com/users/tverbele/received_events","type":"User","site_admin":false},"body":"In order to fetch the payload from a put/post call one requires to provide an own Options implementation with a _body() method. This is a quite cumbersome way to fetch this data. A nicer way is to use the converter to just convert the payload data to an additional parameter in the method.\r\n\r\nFor example suppose the method\r\n```\r\n   public void putXxx(PutRequest rq, UUID id) {\r\n         MyDTO data = rq._body();\r\n          // do stuff\r\n   }\r\n```\r\ncould be implemented as follows: \r\n```\r\n   public void putXxx(RestRequest rq, UUID id, MyDTO data) {\r\n          // do stuff\r\n   }\r\n```\r\nMy patch should support both scenarios: it checks whether the first argument has a _body() method, if yes, it uses the original way, if not, then it will try to use the last method parameter to convert the payload into.\r\n","created_at":"2015-06-26T14:14:58Z","updated_at":"2015-08-26T09:40:33Z","closed_at":"2015-08-26T09:40:33Z","merged_at":"2015-08-26T09:40:33Z","merge_commit_sha":"66a5becbea09cbce8665b7309d0fb6e5f47a55c3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/pulls/9/commits","review_comments_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/pulls/9/comments","review_comment_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/pulls/comments{/number}","comments_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/issues/9/comments","statuses_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/statuses/a0f4da81f692b8a17796a4158ff2a896daf7657b","head":{"label":"tverbele:rest-put-parameter","ref":"rest-put-parameter","sha":"a0f4da81f692b8a17796a4158ff2a896daf7657b","user":{"login":"tverbele","id":4587925,"avatar_url":"https://avatars.githubusercontent.com/u/4587925?v=3","gravatar_id":"","url":"https://api.github.com/users/tverbele","html_url":"https://github.com/tverbele","followers_url":"https://api.github.com/users/tverbele/followers","following_url":"https://api.github.com/users/tverbele/following{/other_user}","gists_url":"https://api.github.com/users/tverbele/gists{/gist_id}","starred_url":"https://api.github.com/users/tverbele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tverbele/subscriptions","organizations_url":"https://api.github.com/users/tverbele/orgs","repos_url":"https://api.github.com/users/tverbele/repos","events_url":"https://api.github.com/users/tverbele/events{/privacy}","received_events_url":"https://api.github.com/users/tverbele/received_events","type":"User","site_admin":false},"repo":{"id":33240085,"name":"osgi.enroute.bundles","full_name":"tverbele/osgi.enroute.bundles","owner":{"login":"tverbele","id":4587925,"avatar_url":"https://avatars.githubusercontent.com/u/4587925?v=3","gravatar_id":"","url":"https://api.github.com/users/tverbele","html_url":"https://github.com/tverbele","followers_url":"https://api.github.com/users/tverbele/followers","following_url":"https://api.github.com/users/tverbele/following{/other_user}","gists_url":"https://api.github.com/users/tverbele/gists{/gist_id}","starred_url":"https://api.github.com/users/tverbele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tverbele/subscriptions","organizations_url":"https://api.github.com/users/tverbele/orgs","repos_url":"https://api.github.com/users/tverbele/repos","events_url":"https://api.github.com/users/tverbele/events{/privacy}","received_events_url":"https://api.github.com/users/tverbele/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tverbele/osgi.enroute.bundles","description":"Bundles for the OSGi enRoute project. These bundles are simple implementations that can be used to run enRoute for smaller applications and provide an example how to implement it more thoroughly. There are also examples in this repo.","fork":true,"url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles","forks_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/forks","keys_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/teams","hooks_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/hooks","issue_events_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/issues/events{/number}","events_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/events","assignees_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/assignees{/user}","branches_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/branches{/branch}","tags_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/tags","blobs_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/git/refs{/sha}","trees_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/statuses/{sha}","languages_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/languages","stargazers_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/stargazers","contributors_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/contributors","subscribers_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/subscribers","subscription_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/subscription","commits_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/commits{/sha}","git_commits_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/git/commits{/sha}","comments_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/comments{/number}","issue_comment_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/issues/comments{/number}","contents_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/contents/{+path}","compare_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/merges","archive_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/downloads","issues_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/issues{/number}","pulls_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/pulls{/number}","milestones_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/milestones{/number}","notifications_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/labels{/name}","releases_url":"https://api.github.com/repos/tverbele/osgi.enroute.bundles/releases{/id}","created_at":"2015-04-01T09:54:38Z","updated_at":"2015-04-13T13:02:41Z","pushed_at":"2015-07-07T13:08:30Z","git_url":"git://github.com/tverbele/osgi.enroute.bundles.git","ssh_url":"git@github.com:tverbele/osgi.enroute.bundles.git","clone_url":"https://github.com/tverbele/osgi.enroute.bundles.git","svn_url":"https://github.com/tverbele/osgi.enroute.bundles","homepage":null,"size":3774,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"osgi:master","ref":"master","sha":"cc3fd6fe0ad8bc7b748c85ac34d09728b2c84b53","user":{"login":"osgi","id":1123352,"avatar_url":"https://avatars.githubusercontent.com/u/1123352?v=3","gravatar_id":"","url":"https://api.github.com/users/osgi","html_url":"https://github.com/osgi","followers_url":"https://api.github.com/users/osgi/followers","following_url":"https://api.github.com/users/osgi/following{/other_user}","gists_url":"https://api.github.com/users/osgi/gists{/gist_id}","starred_url":"https://api.github.com/users/osgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osgi/subscriptions","organizations_url":"https://api.github.com/users/osgi/orgs","repos_url":"https://api.github.com/users/osgi/repos","events_url":"https://api.github.com/users/osgi/events{/privacy}","received_events_url":"https://api.github.com/users/osgi/received_events","type":"Organization","site_admin":false},"repo":{"id":25362464,"name":"osgi.enroute.bundles","full_name":"osgi/osgi.enroute.bundles","owner":{"login":"osgi","id":1123352,"avatar_url":"https://avatars.githubusercontent.com/u/1123352?v=3","gravatar_id":"","url":"https://api.github.com/users/osgi","html_url":"https://github.com/osgi","followers_url":"https://api.github.com/users/osgi/followers","following_url":"https://api.github.com/users/osgi/following{/other_user}","gists_url":"https://api.github.com/users/osgi/gists{/gist_id}","starred_url":"https://api.github.com/users/osgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osgi/subscriptions","organizations_url":"https://api.github.com/users/osgi/orgs","repos_url":"https://api.github.com/users/osgi/repos","events_url":"https://api.github.com/users/osgi/events{/privacy}","received_events_url":"https://api.github.com/users/osgi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osgi/osgi.enroute.bundles","description":"Bundles for the OSGi enRoute project. These bundles are simple implementations that can be used to run enRoute for smaller applications and provide an example how to implement it more thoroughly. There are also examples in this repo.","fork":false,"url":"https://api.github.com/repos/osgi/osgi.enroute.bundles","forks_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/forks","keys_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/teams","hooks_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/hooks","issue_events_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/issues/events{/number}","events_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/events","assignees_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/assignees{/user}","branches_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/branches{/branch}","tags_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/tags","blobs_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/git/refs{/sha}","trees_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/statuses/{sha}","languages_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/languages","stargazers_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/stargazers","contributors_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/contributors","subscribers_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/subscribers","subscription_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/subscription","commits_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/commits{/sha}","git_commits_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/git/commits{/sha}","comments_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/comments{/number}","issue_comment_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/issues/comments{/number}","contents_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/contents/{+path}","compare_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/merges","archive_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/downloads","issues_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/issues{/number}","pulls_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/pulls{/number}","milestones_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/milestones{/number}","notifications_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/labels{/name}","releases_url":"https://api.github.com/repos/osgi/osgi.enroute.bundles/releases{/id}","created_at":"2014-10-17T14:41:42Z","updated_at":"2015-05-28T19:34:04Z","pushed_at":"2015-08-26T09:40:33Z","git_url":"git://github.com/osgi/osgi.enroute.bundles.git","ssh_url":"git@github.com:osgi/osgi.enroute.bundles.git","clone_url":"https://github.com/osgi/osgi.enroute.bundles.git","svn_url":"https://github.com/osgi/osgi.enroute.bundles","homepage":null,"size":3966,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/osgi/osgi.enroute.bundles/pulls/9"},"html":{"href":"https://github.com/osgi/osgi.enroute.bundles/pull/9"},"issue":{"href":"https://api.github.com/repos/osgi/osgi.enroute.bundles/issues/9"},"comments":{"href":"https://api.github.com/repos/osgi/osgi.enroute.bundles/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/osgi/osgi.enroute.bundles/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/osgi/osgi.enroute.bundles/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/osgi/osgi.enroute.bundles/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/osgi/osgi.enroute.bundles/statuses/a0f4da81f692b8a17796a4158ff2a896daf7657b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pkriens","id":200494,"avatar_url":"https://avatars.githubusercontent.com/u/200494?v=3","gravatar_id":"","url":"https://api.github.com/users/pkriens","html_url":"https://github.com/pkriens","followers_url":"https://api.github.com/users/pkriens/followers","following_url":"https://api.github.com/users/pkriens/following{/other_user}","gists_url":"https://api.github.com/users/pkriens/gists{/gist_id}","starred_url":"https://api.github.com/users/pkriens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkriens/subscriptions","organizations_url":"https://api.github.com/users/pkriens/orgs","repos_url":"https://api.github.com/users/pkriens/repos","events_url":"https://api.github.com/users/pkriens/events{/privacy}","received_events_url":"https://api.github.com/users/pkriens/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":5,"additions":60,"deletions":27,"changed_files":2}}