{"action":"opened","number":158,"pull_request":{"url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/pulls/158","id":52778242,"html_url":"https://github.com/nativelogix/xquerrail2.framework/pull/158","diff_url":"https://github.com/nativelogix/xquerrail2.framework/pull/158.diff","patch_url":"https://github.com/nativelogix/xquerrail2.framework/pull/158.patch","issue_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/issues/158","number":158,"state":"open","locked":false,"title":"Fix #157","user":{"login":"rlouapre","id":6400566,"avatar_url":"https://avatars.githubusercontent.com/u/6400566?v=3","gravatar_id":"","url":"https://api.github.com/users/rlouapre","html_url":"https://github.com/rlouapre","followers_url":"https://api.github.com/users/rlouapre/followers","following_url":"https://api.github.com/users/rlouapre/following{/other_user}","gists_url":"https://api.github.com/users/rlouapre/gists{/gist_id}","starred_url":"https://api.github.com/users/rlouapre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlouapre/subscriptions","organizations_url":"https://api.github.com/users/rlouapre/orgs","repos_url":"https://api.github.com/users/rlouapre/repos","events_url":"https://api.github.com/users/rlouapre/events{/privacy}","received_events_url":"https://api.github.com/users/rlouapre/received_events","type":"User","site_admin":false},"body":"XQuery example to invoke the dispatcher from QConsole\r\n\r\n```\r\nxquery version \"1.0-ml\";\r\nimport module namespace request = \"http://xquerrail.com/request\" at \"/main/_framework/request.xqy\";\r\nimport module namespace domain = \"http://xquerrail.com/domain\" at \"/main/_framework/domain.xqy\";\r\ndeclare option xdmp:mapping \"false\";\r\n\r\nlet $request := json:object()\r\nlet $_ := (\r\n  map:put($request, \"type\", \"request:request\"),\r\n  map:put($request, \"request:method\",\"PUT\"),\r\n  map:put($request, \"request:route\",\"default_controller_action_format\"),\r\n  map:put($request, \"request:application\",\"app-test\"),\r\n  map:put($request, \"request:controller\",\"documents\"),\r\n  map:put($request, \"request:action\",\"insert\"),\r\n  map:put($request, \"request:format\",\"xml\"),\r\n  map:put($request, \"request:param::uri\",\"/text/4.xml\")\r\n)\r\n\r\nreturn\r\n  xdmp:invoke(\r\n     \"/main/_framework/dispatchers/dispatcher.web.xqy\",\r\n     map:new((\r\n       map:entry(\"{http://xquerrail.com/domain}REQUEST-EXTERNAL\", $request),\r\n       map:entry(\"{http://xquerrail.com/domain}REQUEST-BODY-EXTERNAL\", <trade><name>trade-1</name></trade>)\r\n     ))\r\n  )\r\n```","created_at":"2015-12-06T11:37:46Z","updated_at":"2015-12-06T11:37:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/pulls/158/commits","review_comments_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/pulls/158/comments","review_comment_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/issues/158/comments","statuses_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/statuses/2211eaa3658d86d00bc7e46d56b4cd6e295605d1","head":{"label":"nativelogix:issue-157","ref":"issue-157","sha":"2211eaa3658d86d00bc7e46d56b4cd6e295605d1","user":{"login":"nativelogix","id":7330681,"avatar_url":"https://avatars.githubusercontent.com/u/7330681?v=3","gravatar_id":"","url":"https://api.github.com/users/nativelogix","html_url":"https://github.com/nativelogix","followers_url":"https://api.github.com/users/nativelogix/followers","following_url":"https://api.github.com/users/nativelogix/following{/other_user}","gists_url":"https://api.github.com/users/nativelogix/gists{/gist_id}","starred_url":"https://api.github.com/users/nativelogix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nativelogix/subscriptions","organizations_url":"https://api.github.com/users/nativelogix/orgs","repos_url":"https://api.github.com/users/nativelogix/repos","events_url":"https://api.github.com/users/nativelogix/events{/privacy}","received_events_url":"https://api.github.com/users/nativelogix/received_events","type":"Organization","site_admin":false},"repo":{"id":16984953,"name":"xquerrail2.framework","full_name":"nativelogix/xquerrail2.framework","owner":{"login":"nativelogix","id":7330681,"avatar_url":"https://avatars.githubusercontent.com/u/7330681?v=3","gravatar_id":"","url":"https://api.github.com/users/nativelogix","html_url":"https://github.com/nativelogix","followers_url":"https://api.github.com/users/nativelogix/followers","following_url":"https://api.github.com/users/nativelogix/following{/other_user}","gists_url":"https://api.github.com/users/nativelogix/gists{/gist_id}","starred_url":"https://api.github.com/users/nativelogix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nativelogix/subscriptions","organizations_url":"https://api.github.com/users/nativelogix/orgs","repos_url":"https://api.github.com/users/nativelogix/repos","events_url":"https://api.github.com/users/nativelogix/events{/privacy}","received_events_url":"https://api.github.com/users/nativelogix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nativelogix/xquerrail2.framework","description":"Is the XQuerrail Framework as a standalone library.","fork":false,"url":"https://api.github.com/repos/nativelogix/xquerrail2.framework","forks_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/forks","keys_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/teams","hooks_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/hooks","issue_events_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/issues/events{/number}","events_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/events","assignees_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/assignees{/user}","branches_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/branches{/branch}","tags_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/tags","blobs_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/statuses/{sha}","languages_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/languages","stargazers_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/stargazers","contributors_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/contributors","subscribers_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/subscribers","subscription_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/subscription","commits_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/contents/{+path}","compare_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/merges","archive_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/downloads","issues_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/issues{/number}","pulls_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/pulls{/number}","milestones_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/milestones{/number}","notifications_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/labels{/name}","releases_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/releases{/id}","created_at":"2014-02-19T13:26:46Z","updated_at":"2015-10-25T13:39:59Z","pushed_at":"2015-12-06T11:37:29Z","git_url":"git://github.com/nativelogix/xquerrail2.framework.git","ssh_url":"git@github.com:nativelogix/xquerrail2.framework.git","clone_url":"https://github.com/nativelogix/xquerrail2.framework.git","svn_url":"https://github.com/nativelogix/xquerrail2.framework","homepage":null,"size":6626,"stargazers_count":5,"watchers_count":5,"language":"XQuery","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":13,"forks":6,"open_issues":13,"watchers":5,"default_branch":"master"}},"base":{"label":"nativelogix:master","ref":"master","sha":"aa29aaf3599bbf65ac132b2b4078d3bae0c88711","user":{"login":"nativelogix","id":7330681,"avatar_url":"https://avatars.githubusercontent.com/u/7330681?v=3","gravatar_id":"","url":"https://api.github.com/users/nativelogix","html_url":"https://github.com/nativelogix","followers_url":"https://api.github.com/users/nativelogix/followers","following_url":"https://api.github.com/users/nativelogix/following{/other_user}","gists_url":"https://api.github.com/users/nativelogix/gists{/gist_id}","starred_url":"https://api.github.com/users/nativelogix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nativelogix/subscriptions","organizations_url":"https://api.github.com/users/nativelogix/orgs","repos_url":"https://api.github.com/users/nativelogix/repos","events_url":"https://api.github.com/users/nativelogix/events{/privacy}","received_events_url":"https://api.github.com/users/nativelogix/received_events","type":"Organization","site_admin":false},"repo":{"id":16984953,"name":"xquerrail2.framework","full_name":"nativelogix/xquerrail2.framework","owner":{"login":"nativelogix","id":7330681,"avatar_url":"https://avatars.githubusercontent.com/u/7330681?v=3","gravatar_id":"","url":"https://api.github.com/users/nativelogix","html_url":"https://github.com/nativelogix","followers_url":"https://api.github.com/users/nativelogix/followers","following_url":"https://api.github.com/users/nativelogix/following{/other_user}","gists_url":"https://api.github.com/users/nativelogix/gists{/gist_id}","starred_url":"https://api.github.com/users/nativelogix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nativelogix/subscriptions","organizations_url":"https://api.github.com/users/nativelogix/orgs","repos_url":"https://api.github.com/users/nativelogix/repos","events_url":"https://api.github.com/users/nativelogix/events{/privacy}","received_events_url":"https://api.github.com/users/nativelogix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nativelogix/xquerrail2.framework","description":"Is the XQuerrail Framework as a standalone library.","fork":false,"url":"https://api.github.com/repos/nativelogix/xquerrail2.framework","forks_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/forks","keys_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/teams","hooks_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/hooks","issue_events_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/issues/events{/number}","events_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/events","assignees_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/assignees{/user}","branches_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/branches{/branch}","tags_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/tags","blobs_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/statuses/{sha}","languages_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/languages","stargazers_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/stargazers","contributors_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/contributors","subscribers_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/subscribers","subscription_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/subscription","commits_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/contents/{+path}","compare_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/merges","archive_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/downloads","issues_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/issues{/number}","pulls_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/pulls{/number}","milestones_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/milestones{/number}","notifications_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/labels{/name}","releases_url":"https://api.github.com/repos/nativelogix/xquerrail2.framework/releases{/id}","created_at":"2014-02-19T13:26:46Z","updated_at":"2015-10-25T13:39:59Z","pushed_at":"2015-12-06T11:37:29Z","git_url":"git://github.com/nativelogix/xquerrail2.framework.git","ssh_url":"git@github.com:nativelogix/xquerrail2.framework.git","clone_url":"https://github.com/nativelogix/xquerrail2.framework.git","svn_url":"https://github.com/nativelogix/xquerrail2.framework","homepage":null,"size":6626,"stargazers_count":5,"watchers_count":5,"language":"XQuery","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":13,"forks":6,"open_issues":13,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nativelogix/xquerrail2.framework/pulls/158"},"html":{"href":"https://github.com/nativelogix/xquerrail2.framework/pull/158"},"issue":{"href":"https://api.github.com/repos/nativelogix/xquerrail2.framework/issues/158"},"comments":{"href":"https://api.github.com/repos/nativelogix/xquerrail2.framework/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/nativelogix/xquerrail2.framework/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/nativelogix/xquerrail2.framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nativelogix/xquerrail2.framework/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/nativelogix/xquerrail2.framework/statuses/2211eaa3658d86d00bc7e46d56b4cd6e295605d1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":138,"deletions":46,"changed_files":4}}