{"action":"created","comment":{"url":"https://api.github.com/repos/TeamPlayTF/Server/pulls/comments/34378715","id":34378715,"diff_hunk":"@@ -4,9 +4,40 @@ import (\n \t\"net/http\"\n \n \t\"github.com/TeamPlayTF/Server/config\"\n+\t\"github.com/bitly/go-simplejson\"\n \t\"github.com/gorilla/sessions\"\n )\n \n+//Response structure\n+//github.com/TeamPlayTF/Specifications/blob/master/Communication.md#response-format\n+type Response struct {","path":"controllers/controllerHelpers.go","position":10,"original_position":10,"commit_id":"da6e2b361ba2105ccd65f620314a72ffb8e5c3cd","original_commit_id":"da6e2b361ba2105ccd65f620314a72ffb8e5c3cd","user":{"login":"zygi","id":2059901,"avatar_url":"https://avatars.githubusercontent.com/u/2059901?v=3","gravatar_id":"","url":"https://api.github.com/users/zygi","html_url":"https://github.com/zygi","followers_url":"https://api.github.com/users/zygi/followers","following_url":"https://api.github.com/users/zygi/following{/other_user}","gists_url":"https://api.github.com/users/zygi/gists{/gist_id}","starred_url":"https://api.github.com/users/zygi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zygi/subscriptions","organizations_url":"https://api.github.com/users/zygi/orgs","repos_url":"https://api.github.com/users/zygi/repos","events_url":"https://api.github.com/users/zygi/events{/privacy}","received_events_url":"https://api.github.com/users/zygi/received_events","type":"User","site_admin":false},"body":"This struct is no longer needed","created_at":"2015-07-10T17:54:43Z","updated_at":"2015-07-10T17:54:43Z","html_url":"https://github.com/TeamPlayTF/Server/pull/7#discussion_r34378715","pull_request_url":"https://api.github.com/repos/TeamPlayTF/Server/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/TeamPlayTF/Server/pulls/comments/34378715"},"html":{"href":"https://github.com/TeamPlayTF/Server/pull/7#discussion_r34378715"},"pull_request":{"href":"https://api.github.com/repos/TeamPlayTF/Server/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/TeamPlayTF/Server/pulls/7","id":39674228,"html_url":"https://github.com/TeamPlayTF/Server/pull/7","diff_url":"https://github.com/TeamPlayTF/Server/pull/7.diff","patch_url":"https://github.com/TeamPlayTF/Server/pull/7.patch","issue_url":"https://api.github.com/repos/TeamPlayTF/Server/issues/7","number":7,"state":"open","locked":false,"title":"Added basic Response support ","user":{"login":"vibhavp","id":2142872,"avatar_url":"https://avatars.githubusercontent.com/u/2142872?v=3","gravatar_id":"","url":"https://api.github.com/users/vibhavp","html_url":"https://github.com/vibhavp","followers_url":"https://api.github.com/users/vibhavp/followers","following_url":"https://api.github.com/users/vibhavp/following{/other_user}","gists_url":"https://api.github.com/users/vibhavp/gists{/gist_id}","starred_url":"https://api.github.com/users/vibhavp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vibhavp/subscriptions","organizations_url":"https://api.github.com/users/vibhavp/orgs","repos_url":"https://api.github.com/users/vibhavp/repos","events_url":"https://api.github.com/users/vibhavp/events{/privacy}","received_events_url":"https://api.github.com/users/vibhavp/received_events","type":"User","site_admin":false},"body":"It's a bit different from what the spec says, so I'll update it too.","created_at":"2015-07-10T11:08:35Z","updated_at":"2015-07-10T17:54:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c23bcc7b11ee807453a66c6f24661252997c0487","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TeamPlayTF/Server/pulls/7/commits","review_comments_url":"https://api.github.com/repos/TeamPlayTF/Server/pulls/7/comments","review_comment_url":"https://api.github.com/repos/TeamPlayTF/Server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeamPlayTF/Server/issues/7/comments","statuses_url":"https://api.github.com/repos/TeamPlayTF/Server/statuses/da6e2b361ba2105ccd65f620314a72ffb8e5c3cd","head":{"label":"vibhavp:master","ref":"master","sha":"da6e2b361ba2105ccd65f620314a72ffb8e5c3cd","user":{"login":"vibhavp","id":2142872,"avatar_url":"https://avatars.githubusercontent.com/u/2142872?v=3","gravatar_id":"","url":"https://api.github.com/users/vibhavp","html_url":"https://github.com/vibhavp","followers_url":"https://api.github.com/users/vibhavp/followers","following_url":"https://api.github.com/users/vibhavp/following{/other_user}","gists_url":"https://api.github.com/users/vibhavp/gists{/gist_id}","starred_url":"https://api.github.com/users/vibhavp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vibhavp/subscriptions","organizations_url":"https://api.github.com/users/vibhavp/orgs","repos_url":"https://api.github.com/users/vibhavp/repos","events_url":"https://api.github.com/users/vibhavp/events{/privacy}","received_events_url":"https://api.github.com/users/vibhavp/received_events","type":"User","site_admin":false},"repo":{"id":38876364,"name":"Server-1","full_name":"vibhavp/Server-1","owner":{"login":"vibhavp","id":2142872,"avatar_url":"https://avatars.githubusercontent.com/u/2142872?v=3","gravatar_id":"","url":"https://api.github.com/users/vibhavp","html_url":"https://github.com/vibhavp","followers_url":"https://api.github.com/users/vibhavp/followers","following_url":"https://api.github.com/users/vibhavp/following{/other_user}","gists_url":"https://api.github.com/users/vibhavp/gists{/gist_id}","starred_url":"https://api.github.com/users/vibhavp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vibhavp/subscriptions","organizations_url":"https://api.github.com/users/vibhavp/orgs","repos_url":"https://api.github.com/users/vibhavp/repos","events_url":"https://api.github.com/users/vibhavp/events{/privacy}","received_events_url":"https://api.github.com/users/vibhavp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vibhavp/Server-1","description":"","fork":true,"url":"https://api.github.com/repos/vibhavp/Server-1","forks_url":"https://api.github.com/repos/vibhavp/Server-1/forks","keys_url":"https://api.github.com/repos/vibhavp/Server-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vibhavp/Server-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vibhavp/Server-1/teams","hooks_url":"https://api.github.com/repos/vibhavp/Server-1/hooks","issue_events_url":"https://api.github.com/repos/vibhavp/Server-1/issues/events{/number}","events_url":"https://api.github.com/repos/vibhavp/Server-1/events","assignees_url":"https://api.github.com/repos/vibhavp/Server-1/assignees{/user}","branches_url":"https://api.github.com/repos/vibhavp/Server-1/branches{/branch}","tags_url":"https://api.github.com/repos/vibhavp/Server-1/tags","blobs_url":"https://api.github.com/repos/vibhavp/Server-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vibhavp/Server-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vibhavp/Server-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/vibhavp/Server-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vibhavp/Server-1/statuses/{sha}","languages_url":"https://api.github.com/repos/vibhavp/Server-1/languages","stargazers_url":"https://api.github.com/repos/vibhavp/Server-1/stargazers","contributors_url":"https://api.github.com/repos/vibhavp/Server-1/contributors","subscribers_url":"https://api.github.com/repos/vibhavp/Server-1/subscribers","subscription_url":"https://api.github.com/repos/vibhavp/Server-1/subscription","commits_url":"https://api.github.com/repos/vibhavp/Server-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/vibhavp/Server-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/vibhavp/Server-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/vibhavp/Server-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/vibhavp/Server-1/contents/{+path}","compare_url":"https://api.github.com/repos/vibhavp/Server-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vibhavp/Server-1/merges","archive_url":"https://api.github.com/repos/vibhavp/Server-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vibhavp/Server-1/downloads","issues_url":"https://api.github.com/repos/vibhavp/Server-1/issues{/number}","pulls_url":"https://api.github.com/repos/vibhavp/Server-1/pulls{/number}","milestones_url":"https://api.github.com/repos/vibhavp/Server-1/milestones{/number}","notifications_url":"https://api.github.com/repos/vibhavp/Server-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vibhavp/Server-1/labels{/name}","releases_url":"https://api.github.com/repos/vibhavp/Server-1/releases{/id}","created_at":"2015-07-10T11:05:56Z","updated_at":"2015-07-10T11:05:56Z","pushed_at":"2015-07-10T17:53:11Z","git_url":"git://github.com/vibhavp/Server-1.git","ssh_url":"git@github.com:vibhavp/Server-1.git","clone_url":"https://github.com/vibhavp/Server-1.git","svn_url":"https://github.com/vibhavp/Server-1","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"TeamPlayTF:master","ref":"master","sha":"98822357c04e9350f394f87175c89f72cb556f24","user":{"login":"TeamPlayTF","id":13245135,"avatar_url":"https://avatars.githubusercontent.com/u/13245135?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamPlayTF","html_url":"https://github.com/TeamPlayTF","followers_url":"https://api.github.com/users/TeamPlayTF/followers","following_url":"https://api.github.com/users/TeamPlayTF/following{/other_user}","gists_url":"https://api.github.com/users/TeamPlayTF/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamPlayTF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamPlayTF/subscriptions","organizations_url":"https://api.github.com/users/TeamPlayTF/orgs","repos_url":"https://api.github.com/users/TeamPlayTF/repos","events_url":"https://api.github.com/users/TeamPlayTF/events{/privacy}","received_events_url":"https://api.github.com/users/TeamPlayTF/received_events","type":"Organization","site_admin":false},"repo":{"id":38784594,"name":"Server","full_name":"TeamPlayTF/Server","owner":{"login":"TeamPlayTF","id":13245135,"avatar_url":"https://avatars.githubusercontent.com/u/13245135?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamPlayTF","html_url":"https://github.com/TeamPlayTF","followers_url":"https://api.github.com/users/TeamPlayTF/followers","following_url":"https://api.github.com/users/TeamPlayTF/following{/other_user}","gists_url":"https://api.github.com/users/TeamPlayTF/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamPlayTF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamPlayTF/subscriptions","organizations_url":"https://api.github.com/users/TeamPlayTF/orgs","repos_url":"https://api.github.com/users/TeamPlayTF/repos","events_url":"https://api.github.com/users/TeamPlayTF/events{/privacy}","received_events_url":"https://api.github.com/users/TeamPlayTF/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamPlayTF/Server","description":"","fork":false,"url":"https://api.github.com/repos/TeamPlayTF/Server","forks_url":"https://api.github.com/repos/TeamPlayTF/Server/forks","keys_url":"https://api.github.com/repos/TeamPlayTF/Server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamPlayTF/Server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamPlayTF/Server/teams","hooks_url":"https://api.github.com/repos/TeamPlayTF/Server/hooks","issue_events_url":"https://api.github.com/repos/TeamPlayTF/Server/issues/events{/number}","events_url":"https://api.github.com/repos/TeamPlayTF/Server/events","assignees_url":"https://api.github.com/repos/TeamPlayTF/Server/assignees{/user}","branches_url":"https://api.github.com/repos/TeamPlayTF/Server/branches{/branch}","tags_url":"https://api.github.com/repos/TeamPlayTF/Server/tags","blobs_url":"https://api.github.com/repos/TeamPlayTF/Server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamPlayTF/Server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamPlayTF/Server/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamPlayTF/Server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamPlayTF/Server/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamPlayTF/Server/languages","stargazers_url":"https://api.github.com/repos/TeamPlayTF/Server/stargazers","contributors_url":"https://api.github.com/repos/TeamPlayTF/Server/contributors","subscribers_url":"https://api.github.com/repos/TeamPlayTF/Server/subscribers","subscription_url":"https://api.github.com/repos/TeamPlayTF/Server/subscription","commits_url":"https://api.github.com/repos/TeamPlayTF/Server/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamPlayTF/Server/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamPlayTF/Server/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamPlayTF/Server/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamPlayTF/Server/contents/{+path}","compare_url":"https://api.github.com/repos/TeamPlayTF/Server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamPlayTF/Server/merges","archive_url":"https://api.github.com/repos/TeamPlayTF/Server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamPlayTF/Server/downloads","issues_url":"https://api.github.com/repos/TeamPlayTF/Server/issues{/number}","pulls_url":"https://api.github.com/repos/TeamPlayTF/Server/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamPlayTF/Server/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamPlayTF/Server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamPlayTF/Server/labels{/name}","releases_url":"https://api.github.com/repos/TeamPlayTF/Server/releases{/id}","created_at":"2015-07-08T23:02:58Z","updated_at":"2015-07-10T03:55:00Z","pushed_at":"2015-07-10T17:53:11Z","git_url":"git://github.com/TeamPlayTF/Server.git","ssh_url":"git@github.com:TeamPlayTF/Server.git","clone_url":"https://github.com/TeamPlayTF/Server.git","svn_url":"https://github.com/TeamPlayTF/Server","homepage":null,"size":0,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TeamPlayTF/Server/pulls/7"},"html":{"href":"https://github.com/TeamPlayTF/Server/pull/7"},"issue":{"href":"https://api.github.com/repos/TeamPlayTF/Server/issues/7"},"comments":{"href":"https://api.github.com/repos/TeamPlayTF/Server/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/TeamPlayTF/Server/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/TeamPlayTF/Server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeamPlayTF/Server/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/TeamPlayTF/Server/statuses/da6e2b361ba2105ccd65f620314a72ffb8e5c3cd"}}}}