{"action":"created","comment":{"url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/comments/36116295","id":36116295,"diff_hunk":"@@ -0,0 +1,35 @@\n+define 'kryptnostic.registration-api', [\n+  'require'\n+  'axios'\n+  'bluebird'\n+  'kryptnostic.configuration'\n+  'kryptnostic.logger'\n+], (require) ->\n+\n+  axios         = require 'axios'\n+  Configuration = require 'kryptnostic.configuration'\n+\n+  registrationUrl = -> Configuration.get('heraclesUrl') + '/registration/developers'\n+\n+  log = Logger.get('RegistrationApi')\n+\n+  #\n+  # HTTP calls for registration.\n+  #\n+  class RegistrationApi\n+\n+    register: (realm, email, givenName) ->\n+      Promise.resolve(axios({\n+        method : 'POST'\n+        data :\n+          realm       : realm\n+          name        : email\n+          certificate : ''\n+          email       : email\n+          givenName   : givenName\n+        url : registrationUrl()\n+        }))","path":"js/src/http/RegistrationApi.coffee","position":31,"original_position":31,"commit_id":"05be6e3fd5860ada0a944e8d9ec274a523999948","original_commit_id":"8b8a6ecfb9a73be42f96c1e6025ad4631a893638","user":{"login":"rbuckheit","id":533756,"avatar_url":"https://avatars.githubusercontent.com/u/533756?v=3","gravatar_id":"","url":"https://api.github.com/users/rbuckheit","html_url":"https://github.com/rbuckheit","followers_url":"https://api.github.com/users/rbuckheit/followers","following_url":"https://api.github.com/users/rbuckheit/following{/other_user}","gists_url":"https://api.github.com/users/rbuckheit/gists{/gist_id}","starred_url":"https://api.github.com/users/rbuckheit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbuckheit/subscriptions","organizations_url":"https://api.github.com/users/rbuckheit/orgs","repos_url":"https://api.github.com/users/rbuckheit/repos","events_url":"https://api.github.com/users/rbuckheit/events{/privacy}","received_events_url":"https://api.github.com/users/rbuckheit/received_events","type":"User","site_admin":false},"body":"it looks like the indentation is off on the closing `}))`","created_at":"2015-08-03T18:40:28Z","updated_at":"2015-08-03T18:40:28Z","html_url":"https://github.com/kryptnostic/kryptnostic-js/pull/53#discussion_r36116295","pull_request_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/comments/36116295"},"html":{"href":"https://github.com/kryptnostic/kryptnostic-js/pull/53#discussion_r36116295"},"pull_request":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/53","id":41490397,"html_url":"https://github.com/kryptnostic/kryptnostic-js/pull/53","diff_url":"https://github.com/kryptnostic/kryptnostic-js/pull/53.diff","patch_url":"https://github.com/kryptnostic/kryptnostic-js/pull/53.patch","issue_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/53","number":53,"state":"open","locked":false,"title":"Feature/registration","user":{"login":"sahiga","id":2956895,"avatar_url":"https://avatars.githubusercontent.com/u/2956895?v=3","gravatar_id":"","url":"https://api.github.com/users/sahiga","html_url":"https://github.com/sahiga","followers_url":"https://api.github.com/users/sahiga/followers","following_url":"https://api.github.com/users/sahiga/following{/other_user}","gists_url":"https://api.github.com/users/sahiga/gists{/gist_id}","starred_url":"https://api.github.com/users/sahiga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahiga/subscriptions","organizations_url":"https://api.github.com/users/sahiga/orgs","repos_url":"https://api.github.com/users/sahiga/repos","events_url":"https://api.github.com/users/sahiga/events{/privacy}","received_events_url":"https://api.github.com/users/sahiga/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-03T17:31:58Z","updated_at":"2015-08-03T18:40:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76f6408bae02b10df88d9b674f210bf33f691968","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/53/commits","review_comments_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/53/comments","review_comment_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/53/comments","statuses_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/statuses/05be6e3fd5860ada0a944e8d9ec274a523999948","head":{"label":"kryptnostic:feature/registration","ref":"feature/registration","sha":"05be6e3fd5860ada0a944e8d9ec274a523999948","user":{"login":"kryptnostic","id":5438547,"avatar_url":"https://avatars.githubusercontent.com/u/5438547?v=3","gravatar_id":"","url":"https://api.github.com/users/kryptnostic","html_url":"https://github.com/kryptnostic","followers_url":"https://api.github.com/users/kryptnostic/followers","following_url":"https://api.github.com/users/kryptnostic/following{/other_user}","gists_url":"https://api.github.com/users/kryptnostic/gists{/gist_id}","starred_url":"https://api.github.com/users/kryptnostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kryptnostic/subscriptions","organizations_url":"https://api.github.com/users/kryptnostic/orgs","repos_url":"https://api.github.com/users/kryptnostic/repos","events_url":"https://api.github.com/users/kryptnostic/events{/privacy}","received_events_url":"https://api.github.com/users/kryptnostic/received_events","type":"Organization","site_admin":false},"repo":{"id":33581551,"name":"kryptnostic-js","full_name":"kryptnostic/kryptnostic-js","owner":{"login":"kryptnostic","id":5438547,"avatar_url":"https://avatars.githubusercontent.com/u/5438547?v=3","gravatar_id":"","url":"https://api.github.com/users/kryptnostic","html_url":"https://github.com/kryptnostic","followers_url":"https://api.github.com/users/kryptnostic/followers","following_url":"https://api.github.com/users/kryptnostic/following{/other_user}","gists_url":"https://api.github.com/users/kryptnostic/gists{/gist_id}","starred_url":"https://api.github.com/users/kryptnostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kryptnostic/subscriptions","organizations_url":"https://api.github.com/users/kryptnostic/orgs","repos_url":"https://api.github.com/users/kryptnostic/repos","events_url":"https://api.github.com/users/kryptnostic/events{/privacy}","received_events_url":"https://api.github.com/users/kryptnostic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kryptnostic/kryptnostic-js","description":"Kryptnostic JavaScript Client","fork":false,"url":"https://api.github.com/repos/kryptnostic/kryptnostic-js","forks_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/forks","keys_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/teams","hooks_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/hooks","issue_events_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/events{/number}","events_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/events","assignees_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/assignees{/user}","branches_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/branches{/branch}","tags_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/tags","blobs_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/statuses/{sha}","languages_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/languages","stargazers_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/stargazers","contributors_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/contributors","subscribers_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/subscribers","subscription_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/subscription","commits_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/contents/{+path}","compare_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/merges","archive_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/downloads","issues_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues{/number}","pulls_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls{/number}","milestones_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/milestones{/number}","notifications_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/labels{/name}","releases_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/releases{/id}","created_at":"2015-04-08T03:04:48Z","updated_at":"2015-07-30T21:00:26Z","pushed_at":"2015-08-03T18:39:00Z","git_url":"git://github.com/kryptnostic/kryptnostic-js.git","ssh_url":"git@github.com:kryptnostic/kryptnostic-js.git","clone_url":"https://github.com/kryptnostic/kryptnostic-js.git","svn_url":"https://github.com/kryptnostic/kryptnostic-js","homepage":"","size":2327,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":4,"default_branch":"develop"}},"base":{"label":"kryptnostic:develop","ref":"develop","sha":"fcad4a06d28583c8aa7f0dc1c7f819bd77f42569","user":{"login":"kryptnostic","id":5438547,"avatar_url":"https://avatars.githubusercontent.com/u/5438547?v=3","gravatar_id":"","url":"https://api.github.com/users/kryptnostic","html_url":"https://github.com/kryptnostic","followers_url":"https://api.github.com/users/kryptnostic/followers","following_url":"https://api.github.com/users/kryptnostic/following{/other_user}","gists_url":"https://api.github.com/users/kryptnostic/gists{/gist_id}","starred_url":"https://api.github.com/users/kryptnostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kryptnostic/subscriptions","organizations_url":"https://api.github.com/users/kryptnostic/orgs","repos_url":"https://api.github.com/users/kryptnostic/repos","events_url":"https://api.github.com/users/kryptnostic/events{/privacy}","received_events_url":"https://api.github.com/users/kryptnostic/received_events","type":"Organization","site_admin":false},"repo":{"id":33581551,"name":"kryptnostic-js","full_name":"kryptnostic/kryptnostic-js","owner":{"login":"kryptnostic","id":5438547,"avatar_url":"https://avatars.githubusercontent.com/u/5438547?v=3","gravatar_id":"","url":"https://api.github.com/users/kryptnostic","html_url":"https://github.com/kryptnostic","followers_url":"https://api.github.com/users/kryptnostic/followers","following_url":"https://api.github.com/users/kryptnostic/following{/other_user}","gists_url":"https://api.github.com/users/kryptnostic/gists{/gist_id}","starred_url":"https://api.github.com/users/kryptnostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kryptnostic/subscriptions","organizations_url":"https://api.github.com/users/kryptnostic/orgs","repos_url":"https://api.github.com/users/kryptnostic/repos","events_url":"https://api.github.com/users/kryptnostic/events{/privacy}","received_events_url":"https://api.github.com/users/kryptnostic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kryptnostic/kryptnostic-js","description":"Kryptnostic JavaScript Client","fork":false,"url":"https://api.github.com/repos/kryptnostic/kryptnostic-js","forks_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/forks","keys_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/teams","hooks_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/hooks","issue_events_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/events{/number}","events_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/events","assignees_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/assignees{/user}","branches_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/branches{/branch}","tags_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/tags","blobs_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/statuses/{sha}","languages_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/languages","stargazers_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/stargazers","contributors_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/contributors","subscribers_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/subscribers","subscription_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/subscription","commits_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/contents/{+path}","compare_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/merges","archive_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/downloads","issues_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues{/number}","pulls_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls{/number}","milestones_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/milestones{/number}","notifications_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/labels{/name}","releases_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/releases{/id}","created_at":"2015-04-08T03:04:48Z","updated_at":"2015-07-30T21:00:26Z","pushed_at":"2015-08-03T18:39:00Z","git_url":"git://github.com/kryptnostic/kryptnostic-js.git","ssh_url":"git@github.com:kryptnostic/kryptnostic-js.git","clone_url":"https://github.com/kryptnostic/kryptnostic-js.git","svn_url":"https://github.com/kryptnostic/kryptnostic-js","homepage":"","size":2327,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/53"},"html":{"href":"https://github.com/kryptnostic/kryptnostic-js/pull/53"},"issue":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/53"},"comments":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/statuses/05be6e3fd5860ada0a944e8d9ec274a523999948"}}}}