{"action":"closed","number":65,"pull_request":{"url":"https://api.github.com/repos/EventStore/EventStore.JVM/pulls/65","id":85106045,"html_url":"https://github.com/EventStore/EventStore.JVM/pull/65","diff_url":"https://github.com/EventStore/EventStore.JVM/pull/65.diff","patch_url":"https://github.com/EventStore/EventStore.JVM/pull/65.patch","issue_url":"https://api.github.com/repos/EventStore/EventStore.JVM/issues/65","number":65,"state":"closed","locked":false,"title":"Create projections client","user":{"login":"fchaillou","id":515348,"avatar_url":"https://avatars.githubusercontent.com/u/515348?v=3","gravatar_id":"","url":"https://api.github.com/users/fchaillou","html_url":"https://github.com/fchaillou","followers_url":"https://api.github.com/users/fchaillou/followers","following_url":"https://api.github.com/users/fchaillou/following{/other_user}","gists_url":"https://api.github.com/users/fchaillou/gists{/gist_id}","starred_url":"https://api.github.com/users/fchaillou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchaillou/subscriptions","organizations_url":"https://api.github.com/users/fchaillou/orgs","repos_url":"https://api.github.com/users/fchaillou/repos","events_url":"https://api.github.com/users/fchaillou/events{/privacy}","received_events_url":"https://api.github.com/users/fchaillou/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nFor work, we needed a projection client so i created one and i'm trying here to upstream it.\r\nIt is based on akka http.\r\n\r\nThis is the exposed API :\r\n```\r\nclass ProjectionsClient {\r\ndef createProjection(name: String, javascriptCode: String, mode: ProjectionMode = Continuous, allowEmit: Boolean = true): Future[ProjectionCreationResult]\r\n\r\n  def fetchProjectionStatus(name: String): Future[ProjectionStatus]\r\n\r\n  def fetchProjectionState(name: String, projection: Option[String] = None): Future[Option[JsValue]]\r\n\r\n  def fetchProjectionResult(name: String, projection: Option[String] = None): Future[Option[JsValue]]\r\n\r\n  def waitForProjectionStatus(name: String, expectedState : ProjectionStatus, waitDuration : FiniteDuration = 10 seconds) : Future[Boolean]\r\n\r\ndef startProjection(name: String): Future[Unit]\r\n\r\n  def stopProjection(name: String): Future[Unit]\r\n\r\n  def deleteProjection(name: String): Future[ProjectionDeleteResult]\r\n}\r\n```\r\nHopes it will fit here !\r\nFabien","created_at":"2016-09-13T19:02:33Z","updated_at":"2016-10-16T18:35:05Z","closed_at":"2016-10-16T18:35:05Z","merged_at":"2016-10-16T18:35:05Z","merge_commit_sha":"80380aa49af2179cfbbb9284fa1a95e9b61e85d8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/EventStore/EventStore.JVM/pulls/65/commits","review_comments_url":"https://api.github.com/repos/EventStore/EventStore.JVM/pulls/65/comments","review_comment_url":"https://api.github.com/repos/EventStore/EventStore.JVM/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EventStore/EventStore.JVM/issues/65/comments","statuses_url":"https://api.github.com/repos/EventStore/EventStore.JVM/statuses/38dbf46decf6d1a5098c8387eacdf2b7f61e2445","head":{"label":"fchaillou:projections-client","ref":"projections-client","sha":"38dbf46decf6d1a5098c8387eacdf2b7f61e2445","user":{"login":"fchaillou","id":515348,"avatar_url":"https://avatars.githubusercontent.com/u/515348?v=3","gravatar_id":"","url":"https://api.github.com/users/fchaillou","html_url":"https://github.com/fchaillou","followers_url":"https://api.github.com/users/fchaillou/followers","following_url":"https://api.github.com/users/fchaillou/following{/other_user}","gists_url":"https://api.github.com/users/fchaillou/gists{/gist_id}","starred_url":"https://api.github.com/users/fchaillou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchaillou/subscriptions","organizations_url":"https://api.github.com/users/fchaillou/orgs","repos_url":"https://api.github.com/users/fchaillou/repos","events_url":"https://api.github.com/users/fchaillou/events{/privacy}","received_events_url":"https://api.github.com/users/fchaillou/received_events","type":"User","site_admin":false},"repo":{"id":64321794,"name":"EventStore.JVM","full_name":"fchaillou/EventStore.JVM","owner":{"login":"fchaillou","id":515348,"avatar_url":"https://avatars.githubusercontent.com/u/515348?v=3","gravatar_id":"","url":"https://api.github.com/users/fchaillou","html_url":"https://github.com/fchaillou","followers_url":"https://api.github.com/users/fchaillou/followers","following_url":"https://api.github.com/users/fchaillou/following{/other_user}","gists_url":"https://api.github.com/users/fchaillou/gists{/gist_id}","starred_url":"https://api.github.com/users/fchaillou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchaillou/subscriptions","organizations_url":"https://api.github.com/users/fchaillou/orgs","repos_url":"https://api.github.com/users/fchaillou/repos","events_url":"https://api.github.com/users/fchaillou/events{/privacy}","received_events_url":"https://api.github.com/users/fchaillou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fchaillou/EventStore.JVM","description":"Event Store JVM Client ","fork":true,"url":"https://api.github.com/repos/fchaillou/EventStore.JVM","forks_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/forks","keys_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/teams","hooks_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/hooks","issue_events_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/issues/events{/number}","events_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/events","assignees_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/assignees{/user}","branches_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/branches{/branch}","tags_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/tags","blobs_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/git/refs{/sha}","trees_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/statuses/{sha}","languages_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/languages","stargazers_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/stargazers","contributors_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/contributors","subscribers_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/subscribers","subscription_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/subscription","commits_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/commits{/sha}","git_commits_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/git/commits{/sha}","comments_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/comments{/number}","issue_comment_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/issues/comments{/number}","contents_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/contents/{+path}","compare_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/merges","archive_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/downloads","issues_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/issues{/number}","pulls_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/pulls{/number}","milestones_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/milestones{/number}","notifications_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/labels{/name}","releases_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/releases{/id}","deployments_url":"https://api.github.com/repos/fchaillou/EventStore.JVM/deployments","created_at":"2016-07-27T15:51:44Z","updated_at":"2016-07-27T15:51:45Z","pushed_at":"2016-10-06T18:27:10Z","git_url":"git://github.com/fchaillou/EventStore.JVM.git","ssh_url":"git@github.com:fchaillou/EventStore.JVM.git","clone_url":"https://github.com/fchaillou/EventStore.JVM.git","svn_url":"https://github.com/fchaillou/EventStore.JVM","homepage":"https://geteventstore.com","size":1129,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"EventStore:master","ref":"master","sha":"93a60b4f6d4353b3c726bb54f1d9d0ba9ba79af3","user":{"login":"EventStore","id":1628864,"avatar_url":"https://avatars.githubusercontent.com/u/1628864?v=3","gravatar_id":"","url":"https://api.github.com/users/EventStore","html_url":"https://github.com/EventStore","followers_url":"https://api.github.com/users/EventStore/followers","following_url":"https://api.github.com/users/EventStore/following{/other_user}","gists_url":"https://api.github.com/users/EventStore/gists{/gist_id}","starred_url":"https://api.github.com/users/EventStore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EventStore/subscriptions","organizations_url":"https://api.github.com/users/EventStore/orgs","repos_url":"https://api.github.com/users/EventStore/repos","events_url":"https://api.github.com/users/EventStore/events{/privacy}","received_events_url":"https://api.github.com/users/EventStore/received_events","type":"Organization","site_admin":false},"repo":{"id":11423735,"name":"EventStore.JVM","full_name":"EventStore/EventStore.JVM","owner":{"login":"EventStore","id":1628864,"avatar_url":"https://avatars.githubusercontent.com/u/1628864?v=3","gravatar_id":"","url":"https://api.github.com/users/EventStore","html_url":"https://github.com/EventStore","followers_url":"https://api.github.com/users/EventStore/followers","following_url":"https://api.github.com/users/EventStore/following{/other_user}","gists_url":"https://api.github.com/users/EventStore/gists{/gist_id}","starred_url":"https://api.github.com/users/EventStore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EventStore/subscriptions","organizations_url":"https://api.github.com/users/EventStore/orgs","repos_url":"https://api.github.com/users/EventStore/repos","events_url":"https://api.github.com/users/EventStore/events{/privacy}","received_events_url":"https://api.github.com/users/EventStore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EventStore/EventStore.JVM","description":"Event Store JVM Client ","fork":false,"url":"https://api.github.com/repos/EventStore/EventStore.JVM","forks_url":"https://api.github.com/repos/EventStore/EventStore.JVM/forks","keys_url":"https://api.github.com/repos/EventStore/EventStore.JVM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EventStore/EventStore.JVM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EventStore/EventStore.JVM/teams","hooks_url":"https://api.github.com/repos/EventStore/EventStore.JVM/hooks","issue_events_url":"https://api.github.com/repos/EventStore/EventStore.JVM/issues/events{/number}","events_url":"https://api.github.com/repos/EventStore/EventStore.JVM/events","assignees_url":"https://api.github.com/repos/EventStore/EventStore.JVM/assignees{/user}","branches_url":"https://api.github.com/repos/EventStore/EventStore.JVM/branches{/branch}","tags_url":"https://api.github.com/repos/EventStore/EventStore.JVM/tags","blobs_url":"https://api.github.com/repos/EventStore/EventStore.JVM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EventStore/EventStore.JVM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EventStore/EventStore.JVM/git/refs{/sha}","trees_url":"https://api.github.com/repos/EventStore/EventStore.JVM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EventStore/EventStore.JVM/statuses/{sha}","languages_url":"https://api.github.com/repos/EventStore/EventStore.JVM/languages","stargazers_url":"https://api.github.com/repos/EventStore/EventStore.JVM/stargazers","contributors_url":"https://api.github.com/repos/EventStore/EventStore.JVM/contributors","subscribers_url":"https://api.github.com/repos/EventStore/EventStore.JVM/subscribers","subscription_url":"https://api.github.com/repos/EventStore/EventStore.JVM/subscription","commits_url":"https://api.github.com/repos/EventStore/EventStore.JVM/commits{/sha}","git_commits_url":"https://api.github.com/repos/EventStore/EventStore.JVM/git/commits{/sha}","comments_url":"https://api.github.com/repos/EventStore/EventStore.JVM/comments{/number}","issue_comment_url":"https://api.github.com/repos/EventStore/EventStore.JVM/issues/comments{/number}","contents_url":"https://api.github.com/repos/EventStore/EventStore.JVM/contents/{+path}","compare_url":"https://api.github.com/repos/EventStore/EventStore.JVM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EventStore/EventStore.JVM/merges","archive_url":"https://api.github.com/repos/EventStore/EventStore.JVM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EventStore/EventStore.JVM/downloads","issues_url":"https://api.github.com/repos/EventStore/EventStore.JVM/issues{/number}","pulls_url":"https://api.github.com/repos/EventStore/EventStore.JVM/pulls{/number}","milestones_url":"https://api.github.com/repos/EventStore/EventStore.JVM/milestones{/number}","notifications_url":"https://api.github.com/repos/EventStore/EventStore.JVM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EventStore/EventStore.JVM/labels{/name}","releases_url":"https://api.github.com/repos/EventStore/EventStore.JVM/releases{/id}","deployments_url":"https://api.github.com/repos/EventStore/EventStore.JVM/deployments","created_at":"2013-07-15T13:28:06Z","updated_at":"2016-10-10T22:25:06Z","pushed_at":"2016-10-16T18:35:05Z","git_url":"git://github.com/EventStore/EventStore.JVM.git","ssh_url":"git@github.com:EventStore/EventStore.JVM.git","clone_url":"https://github.com/EventStore/EventStore.JVM.git","svn_url":"https://github.com/EventStore/EventStore.JVM","homepage":"https://geteventstore.com","size":1139,"stargazers_count":124,"watchers_count":124,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":12,"forks":24,"open_issues":12,"watchers":124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EventStore/EventStore.JVM/pulls/65"},"html":{"href":"https://github.com/EventStore/EventStore.JVM/pull/65"},"issue":{"href":"https://api.github.com/repos/EventStore/EventStore.JVM/issues/65"},"comments":{"href":"https://api.github.com/repos/EventStore/EventStore.JVM/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/EventStore/EventStore.JVM/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/EventStore/EventStore.JVM/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EventStore/EventStore.JVM/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/EventStore/EventStore.JVM/statuses/38dbf46decf6d1a5098c8387eacdf2b7f61e2445"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"t3hnar","id":327341,"avatar_url":"https://avatars.githubusercontent.com/u/327341?v=3","gravatar_id":"","url":"https://api.github.com/users/t3hnar","html_url":"https://github.com/t3hnar","followers_url":"https://api.github.com/users/t3hnar/followers","following_url":"https://api.github.com/users/t3hnar/following{/other_user}","gists_url":"https://api.github.com/users/t3hnar/gists{/gist_id}","starred_url":"https://api.github.com/users/t3hnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t3hnar/subscriptions","organizations_url":"https://api.github.com/users/t3hnar/orgs","repos_url":"https://api.github.com/users/t3hnar/repos","events_url":"https://api.github.com/users/t3hnar/events{/privacy}","received_events_url":"https://api.github.com/users/t3hnar/received_events","type":"User","site_admin":false},"comments":8,"review_comments":20,"commits":4,"additions":644,"deletions":8,"changed_files":10}}
{"actor":{"display_login":"t3hnar"}}