{"action":"opened","number":598,"pull_request":{"url":"https://api.github.com/repos/apache/tajo/pulls/598","id":36951614,"html_url":"https://github.com/apache/tajo/pull/598","diff_url":"https://github.com/apache/tajo/pull/598.diff","patch_url":"https://github.com/apache/tajo/pull/598.patch","issue_url":"https://api.github.com/repos/apache/tajo/issues/598","number":598,"state":"open","locked":false,"title":"TAJO-1636 query rest api uri should change from /databases/{database_name}/queies to /queries","user":{"login":"charsyam","id":439301,"avatar_url":"https://avatars.githubusercontent.com/u/439301?v=3","gravatar_id":"","url":"https://api.github.com/users/charsyam","html_url":"https://github.com/charsyam","followers_url":"https://api.github.com/users/charsyam/followers","following_url":"https://api.github.com/users/charsyam/following{/other_user}","gists_url":"https://api.github.com/users/charsyam/gists{/gist_id}","starred_url":"https://api.github.com/users/charsyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charsyam/subscriptions","organizations_url":"https://api.github.com/users/charsyam/orgs","repos_url":"https://api.github.com/users/charsyam/repos","events_url":"https://api.github.com/users/charsyam/events{/privacy}","received_events_url":"https://api.github.com/users/charsyam/received_events","type":"User","site_admin":false},"body":"currently, \"databases\" Rest Api uri has too many meaning.\r\n1. for query\r\n2. to manage databases info\r\nand databases/\r\n{database_name}/queries is not proper for queries \r\n\r\nso I suggest change from \"/databases/{database_name}\r\n/queries\" to\r\n\"/queries/\", it is more clear to understand.\r\nbelow apis will changed.\r\nPOST /databases/{databaseName}/queries -> POST /queries\r\nGET /databases/{databaseName}/queries -> GET /queries\r\nGET /databases/{databaseName}/queries/{queryId} -> GET /queries/{queryId}\r\nGET /databases/{databaseName}/queries/{queryId}/result -> GET /queries/{queryId}/result\r\nGET /databases/{databaseName}/queries/{queryId}/result/{cacheId} -> GET /queries/{queryId}/result/{cacheId}","created_at":"2015-06-04T16:18:10Z","updated_at":"2015-06-04T16:18:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/tajo/pulls/598/commits","review_comments_url":"https://api.github.com/repos/apache/tajo/pulls/598/comments","review_comment_url":"https://api.github.com/repos/apache/tajo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/tajo/issues/598/comments","statuses_url":"https://api.github.com/repos/apache/tajo/statuses/f068436b62ea934e26efa85b8b78a78ca64215b0","head":{"label":"charsyam:feature/change-query-api-address","ref":"feature/change-query-api-address","sha":"f068436b62ea934e26efa85b8b78a78ca64215b0","user":{"login":"charsyam","id":439301,"avatar_url":"https://avatars.githubusercontent.com/u/439301?v=3","gravatar_id":"","url":"https://api.github.com/users/charsyam","html_url":"https://github.com/charsyam","followers_url":"https://api.github.com/users/charsyam/followers","following_url":"https://api.github.com/users/charsyam/following{/other_user}","gists_url":"https://api.github.com/users/charsyam/gists{/gist_id}","starred_url":"https://api.github.com/users/charsyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charsyam/subscriptions","organizations_url":"https://api.github.com/users/charsyam/orgs","repos_url":"https://api.github.com/users/charsyam/repos","events_url":"https://api.github.com/users/charsyam/events{/privacy}","received_events_url":"https://api.github.com/users/charsyam/received_events","type":"User","site_admin":false},"repo":{"id":21539304,"name":"tajo","full_name":"charsyam/tajo","owner":{"login":"charsyam","id":439301,"avatar_url":"https://avatars.githubusercontent.com/u/439301?v=3","gravatar_id":"","url":"https://api.github.com/users/charsyam","html_url":"https://github.com/charsyam","followers_url":"https://api.github.com/users/charsyam/followers","following_url":"https://api.github.com/users/charsyam/following{/other_user}","gists_url":"https://api.github.com/users/charsyam/gists{/gist_id}","starred_url":"https://api.github.com/users/charsyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charsyam/subscriptions","organizations_url":"https://api.github.com/users/charsyam/orgs","repos_url":"https://api.github.com/users/charsyam/repos","events_url":"https://api.github.com/users/charsyam/events{/privacy}","received_events_url":"https://api.github.com/users/charsyam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/charsyam/tajo","description":"Mirror of Apache Tajo","fork":true,"url":"https://api.github.com/repos/charsyam/tajo","forks_url":"https://api.github.com/repos/charsyam/tajo/forks","keys_url":"https://api.github.com/repos/charsyam/tajo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/charsyam/tajo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/charsyam/tajo/teams","hooks_url":"https://api.github.com/repos/charsyam/tajo/hooks","issue_events_url":"https://api.github.com/repos/charsyam/tajo/issues/events{/number}","events_url":"https://api.github.com/repos/charsyam/tajo/events","assignees_url":"https://api.github.com/repos/charsyam/tajo/assignees{/user}","branches_url":"https://api.github.com/repos/charsyam/tajo/branches{/branch}","tags_url":"https://api.github.com/repos/charsyam/tajo/tags","blobs_url":"https://api.github.com/repos/charsyam/tajo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/charsyam/tajo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/charsyam/tajo/git/refs{/sha}","trees_url":"https://api.github.com/repos/charsyam/tajo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/charsyam/tajo/statuses/{sha}","languages_url":"https://api.github.com/repos/charsyam/tajo/languages","stargazers_url":"https://api.github.com/repos/charsyam/tajo/stargazers","contributors_url":"https://api.github.com/repos/charsyam/tajo/contributors","subscribers_url":"https://api.github.com/repos/charsyam/tajo/subscribers","subscription_url":"https://api.github.com/repos/charsyam/tajo/subscription","commits_url":"https://api.github.com/repos/charsyam/tajo/commits{/sha}","git_commits_url":"https://api.github.com/repos/charsyam/tajo/git/commits{/sha}","comments_url":"https://api.github.com/repos/charsyam/tajo/comments{/number}","issue_comment_url":"https://api.github.com/repos/charsyam/tajo/issues/comments{/number}","contents_url":"https://api.github.com/repos/charsyam/tajo/contents/{+path}","compare_url":"https://api.github.com/repos/charsyam/tajo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/charsyam/tajo/merges","archive_url":"https://api.github.com/repos/charsyam/tajo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/charsyam/tajo/downloads","issues_url":"https://api.github.com/repos/charsyam/tajo/issues{/number}","pulls_url":"https://api.github.com/repos/charsyam/tajo/pulls{/number}","milestones_url":"https://api.github.com/repos/charsyam/tajo/milestones{/number}","notifications_url":"https://api.github.com/repos/charsyam/tajo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/charsyam/tajo/labels{/name}","releases_url":"https://api.github.com/repos/charsyam/tajo/releases{/id}","created_at":"2014-07-06T12:09:30Z","updated_at":"2015-05-08T06:28:41Z","pushed_at":"2015-06-04T16:10:28Z","git_url":"git://github.com/charsyam/tajo.git","ssh_url":"git@github.com:charsyam/tajo.git","clone_url":"https://github.com/charsyam/tajo.git","svn_url":"https://github.com/charsyam/tajo","homepage":null,"size":16722,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:master","ref":"master","sha":"dfcf41d6f66044b15f478bb22feecccfdf742628","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17971138,"name":"tajo","full_name":"apache/tajo","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/tajo","description":"Mirror of Apache Tajo","fork":false,"url":"https://api.github.com/repos/apache/tajo","forks_url":"https://api.github.com/repos/apache/tajo/forks","keys_url":"https://api.github.com/repos/apache/tajo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/tajo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/tajo/teams","hooks_url":"https://api.github.com/repos/apache/tajo/hooks","issue_events_url":"https://api.github.com/repos/apache/tajo/issues/events{/number}","events_url":"https://api.github.com/repos/apache/tajo/events","assignees_url":"https://api.github.com/repos/apache/tajo/assignees{/user}","branches_url":"https://api.github.com/repos/apache/tajo/branches{/branch}","tags_url":"https://api.github.com/repos/apache/tajo/tags","blobs_url":"https://api.github.com/repos/apache/tajo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/tajo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/tajo/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/tajo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/tajo/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/tajo/languages","stargazers_url":"https://api.github.com/repos/apache/tajo/stargazers","contributors_url":"https://api.github.com/repos/apache/tajo/contributors","subscribers_url":"https://api.github.com/repos/apache/tajo/subscribers","subscription_url":"https://api.github.com/repos/apache/tajo/subscription","commits_url":"https://api.github.com/repos/apache/tajo/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/tajo/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/tajo/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/tajo/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/tajo/contents/{+path}","compare_url":"https://api.github.com/repos/apache/tajo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/tajo/merges","archive_url":"https://api.github.com/repos/apache/tajo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/tajo/downloads","issues_url":"https://api.github.com/repos/apache/tajo/issues{/number}","pulls_url":"https://api.github.com/repos/apache/tajo/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/tajo/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/tajo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/tajo/labels{/name}","releases_url":"https://api.github.com/repos/apache/tajo/releases{/id}","created_at":"2014-03-21T07:00:07Z","updated_at":"2015-05-21T05:46:06Z","pushed_at":"2015-06-03T04:18:31Z","git_url":"git://github.com/apache/tajo.git","ssh_url":"git@github.com:apache/tajo.git","clone_url":"https://github.com/apache/tajo.git","svn_url":"https://github.com/apache/tajo","homepage":null,"size":44988,"stargazers_count":50,"watchers_count":50,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":59,"mirror_url":"git://git.apache.org/tajo.git","open_issues_count":58,"forks":59,"open_issues":58,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/tajo/pulls/598"},"html":{"href":"https://github.com/apache/tajo/pull/598"},"issue":{"href":"https://api.github.com/repos/apache/tajo/issues/598"},"comments":{"href":"https://api.github.com/repos/apache/tajo/issues/598/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/tajo/pulls/598/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/tajo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/tajo/pulls/598/commits"},"statuses":{"href":"https://api.github.com/repos/apache/tajo/statuses/f068436b62ea934e26efa85b8b78a78ca64215b0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":45,"changed_files":4}}