{"action":"opened","number":2002,"pull_request":{"url":"https://api.github.com/repos/nitlang/nit/pulls/2002","id":64980150,"html_url":"https://github.com/nitlang/nit/pull/2002","diff_url":"https://github.com/nitlang/nit/pull/2002.diff","patch_url":"https://github.com/nitlang/nit/pull/2002.patch","issue_url":"https://api.github.com/repos/nitlang/nit/issues/2002","number":2002,"state":"open","locked":false,"title":"Benitlux: intro server side of social network","user":{"login":"xymus","id":208057,"avatar_url":"https://avatars.githubusercontent.com/u/208057?v=3","gravatar_id":"","url":"https://api.github.com/users/xymus","html_url":"https://github.com/xymus","followers_url":"https://api.github.com/users/xymus/followers","following_url":"https://api.github.com/users/xymus/following{/other_user}","gists_url":"https://api.github.com/users/xymus/gists{/gist_id}","starred_url":"https://api.github.com/users/xymus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xymus/subscriptions","organizations_url":"https://api.github.com/users/xymus/orgs","repos_url":"https://api.github.com/users/xymus/repos","events_url":"https://api.github.com/users/xymus/events{/privacy}","received_events_url":"https://api.github.com/users/xymus/received_events","type":"User","site_admin":false},"body":"This PR extends the Benitlux web server with a RESTful interface for a social network. This interface will be used by the mobile client, which will be introduced in a future PR.\r\n\r\nThe new module `benitlux_social` implements all the core logic and SQL request to implement the database. It uses existing services of `benitlux_db` which only keeps track of the beers and their availability.\r\n\r\nMost of this code is already deployed on xymus.net and used by the commuNity using the alpha version of the mobile app. Also note that this is the first real-world use of nitrestful, which handles very well all the `restful` methods of `benitlux_controller`.","created_at":"2016-04-01T17:47:04Z","updated_at":"2016-04-01T17:47:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nitlang/nit/pulls/2002/commits","review_comments_url":"https://api.github.com/repos/nitlang/nit/pulls/2002/comments","review_comment_url":"https://api.github.com/repos/nitlang/nit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nitlang/nit/issues/2002/comments","statuses_url":"https://api.github.com/repos/nitlang/nit/statuses/311bcb6b7e5e9259f6cce2e8c998670ddad8a3d4","head":{"label":"xymus:benitlux-social-server","ref":"benitlux-social-server","sha":"311bcb6b7e5e9259f6cce2e8c998670ddad8a3d4","user":{"login":"xymus","id":208057,"avatar_url":"https://avatars.githubusercontent.com/u/208057?v=3","gravatar_id":"","url":"https://api.github.com/users/xymus","html_url":"https://github.com/xymus","followers_url":"https://api.github.com/users/xymus/followers","following_url":"https://api.github.com/users/xymus/following{/other_user}","gists_url":"https://api.github.com/users/xymus/gists{/gist_id}","starred_url":"https://api.github.com/users/xymus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xymus/subscriptions","organizations_url":"https://api.github.com/users/xymus/orgs","repos_url":"https://api.github.com/users/xymus/repos","events_url":"https://api.github.com/users/xymus/events{/privacy}","received_events_url":"https://api.github.com/users/xymus/received_events","type":"User","site_admin":false},"repo":{"id":1275771,"name":"nit","full_name":"xymus/nit","owner":{"login":"xymus","id":208057,"avatar_url":"https://avatars.githubusercontent.com/u/208057?v=3","gravatar_id":"","url":"https://api.github.com/users/xymus","html_url":"https://github.com/xymus","followers_url":"https://api.github.com/users/xymus/followers","following_url":"https://api.github.com/users/xymus/following{/other_user}","gists_url":"https://api.github.com/users/xymus/gists{/gist_id}","starred_url":"https://api.github.com/users/xymus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xymus/subscriptions","organizations_url":"https://api.github.com/users/xymus/orgs","repos_url":"https://api.github.com/users/xymus/repos","events_url":"https://api.github.com/users/xymus/events{/privacy}","received_events_url":"https://api.github.com/users/xymus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xymus/nit","description":"Nit language","fork":true,"url":"https://api.github.com/repos/xymus/nit","forks_url":"https://api.github.com/repos/xymus/nit/forks","keys_url":"https://api.github.com/repos/xymus/nit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xymus/nit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xymus/nit/teams","hooks_url":"https://api.github.com/repos/xymus/nit/hooks","issue_events_url":"https://api.github.com/repos/xymus/nit/issues/events{/number}","events_url":"https://api.github.com/repos/xymus/nit/events","assignees_url":"https://api.github.com/repos/xymus/nit/assignees{/user}","branches_url":"https://api.github.com/repos/xymus/nit/branches{/branch}","tags_url":"https://api.github.com/repos/xymus/nit/tags","blobs_url":"https://api.github.com/repos/xymus/nit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xymus/nit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xymus/nit/git/refs{/sha}","trees_url":"https://api.github.com/repos/xymus/nit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xymus/nit/statuses/{sha}","languages_url":"https://api.github.com/repos/xymus/nit/languages","stargazers_url":"https://api.github.com/repos/xymus/nit/stargazers","contributors_url":"https://api.github.com/repos/xymus/nit/contributors","subscribers_url":"https://api.github.com/repos/xymus/nit/subscribers","subscription_url":"https://api.github.com/repos/xymus/nit/subscription","commits_url":"https://api.github.com/repos/xymus/nit/commits{/sha}","git_commits_url":"https://api.github.com/repos/xymus/nit/git/commits{/sha}","comments_url":"https://api.github.com/repos/xymus/nit/comments{/number}","issue_comment_url":"https://api.github.com/repos/xymus/nit/issues/comments{/number}","contents_url":"https://api.github.com/repos/xymus/nit/contents/{+path}","compare_url":"https://api.github.com/repos/xymus/nit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xymus/nit/merges","archive_url":"https://api.github.com/repos/xymus/nit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xymus/nit/downloads","issues_url":"https://api.github.com/repos/xymus/nit/issues{/number}","pulls_url":"https://api.github.com/repos/xymus/nit/pulls{/number}","milestones_url":"https://api.github.com/repos/xymus/nit/milestones{/number}","notifications_url":"https://api.github.com/repos/xymus/nit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xymus/nit/labels{/name}","releases_url":"https://api.github.com/repos/xymus/nit/releases{/id}","deployments_url":"https://api.github.com/repos/xymus/nit/deployments","created_at":"2011-01-20T19:43:31Z","updated_at":"2015-04-06T14:41:09Z","pushed_at":"2016-04-01T17:25:26Z","git_url":"git://github.com/xymus/nit.git","ssh_url":"git@github.com:xymus/nit.git","clone_url":"https://github.com/xymus/nit.git","svn_url":"https://github.com/xymus/nit","homepage":"http://nitlanguage.org","size":119096,"stargazers_count":8,"watchers_count":8,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":8,"default_branch":"master"}},"base":{"label":"nitlang:master","ref":"master","sha":"5f14c71497129dfa65f52639022d2b46ee38d253","user":{"login":"nitlang","id":5420298,"avatar_url":"https://avatars.githubusercontent.com/u/5420298?v=3","gravatar_id":"","url":"https://api.github.com/users/nitlang","html_url":"https://github.com/nitlang","followers_url":"https://api.github.com/users/nitlang/followers","following_url":"https://api.github.com/users/nitlang/following{/other_user}","gists_url":"https://api.github.com/users/nitlang/gists{/gist_id}","starred_url":"https://api.github.com/users/nitlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitlang/subscriptions","organizations_url":"https://api.github.com/users/nitlang/orgs","repos_url":"https://api.github.com/users/nitlang/repos","events_url":"https://api.github.com/users/nitlang/events{/privacy}","received_events_url":"https://api.github.com/users/nitlang/received_events","type":"Organization","site_admin":false},"repo":{"id":328597,"name":"nit","full_name":"nitlang/nit","owner":{"login":"nitlang","id":5420298,"avatar_url":"https://avatars.githubusercontent.com/u/5420298?v=3","gravatar_id":"","url":"https://api.github.com/users/nitlang","html_url":"https://github.com/nitlang","followers_url":"https://api.github.com/users/nitlang/followers","following_url":"https://api.github.com/users/nitlang/following{/other_user}","gists_url":"https://api.github.com/users/nitlang/gists{/gist_id}","starred_url":"https://api.github.com/users/nitlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitlang/subscriptions","organizations_url":"https://api.github.com/users/nitlang/orgs","repos_url":"https://api.github.com/users/nitlang/repos","events_url":"https://api.github.com/users/nitlang/events{/privacy}","received_events_url":"https://api.github.com/users/nitlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nitlang/nit","description":"Nit language","fork":false,"url":"https://api.github.com/repos/nitlang/nit","forks_url":"https://api.github.com/repos/nitlang/nit/forks","keys_url":"https://api.github.com/repos/nitlang/nit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nitlang/nit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nitlang/nit/teams","hooks_url":"https://api.github.com/repos/nitlang/nit/hooks","issue_events_url":"https://api.github.com/repos/nitlang/nit/issues/events{/number}","events_url":"https://api.github.com/repos/nitlang/nit/events","assignees_url":"https://api.github.com/repos/nitlang/nit/assignees{/user}","branches_url":"https://api.github.com/repos/nitlang/nit/branches{/branch}","tags_url":"https://api.github.com/repos/nitlang/nit/tags","blobs_url":"https://api.github.com/repos/nitlang/nit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nitlang/nit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nitlang/nit/git/refs{/sha}","trees_url":"https://api.github.com/repos/nitlang/nit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nitlang/nit/statuses/{sha}","languages_url":"https://api.github.com/repos/nitlang/nit/languages","stargazers_url":"https://api.github.com/repos/nitlang/nit/stargazers","contributors_url":"https://api.github.com/repos/nitlang/nit/contributors","subscribers_url":"https://api.github.com/repos/nitlang/nit/subscribers","subscription_url":"https://api.github.com/repos/nitlang/nit/subscription","commits_url":"https://api.github.com/repos/nitlang/nit/commits{/sha}","git_commits_url":"https://api.github.com/repos/nitlang/nit/git/commits{/sha}","comments_url":"https://api.github.com/repos/nitlang/nit/comments{/number}","issue_comment_url":"https://api.github.com/repos/nitlang/nit/issues/comments{/number}","contents_url":"https://api.github.com/repos/nitlang/nit/contents/{+path}","compare_url":"https://api.github.com/repos/nitlang/nit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nitlang/nit/merges","archive_url":"https://api.github.com/repos/nitlang/nit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nitlang/nit/downloads","issues_url":"https://api.github.com/repos/nitlang/nit/issues{/number}","pulls_url":"https://api.github.com/repos/nitlang/nit/pulls{/number}","milestones_url":"https://api.github.com/repos/nitlang/nit/milestones{/number}","notifications_url":"https://api.github.com/repos/nitlang/nit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nitlang/nit/labels{/name}","releases_url":"https://api.github.com/repos/nitlang/nit/releases{/id}","deployments_url":"https://api.github.com/repos/nitlang/nit/deployments","created_at":"2009-10-06T15:03:00Z","updated_at":"2016-03-18T01:12:26Z","pushed_at":"2016-04-01T04:38:28Z","git_url":"git://github.com/nitlang/nit.git","ssh_url":"git@github.com:nitlang/nit.git","clone_url":"https://github.com/nitlang/nit.git","svn_url":"https://github.com/nitlang/nit","homepage":"http://nitlanguage.org","size":131099,"stargazers_count":92,"watchers_count":92,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":130,"forks":49,"open_issues":130,"watchers":92,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nitlang/nit/pulls/2002"},"html":{"href":"https://github.com/nitlang/nit/pull/2002"},"issue":{"href":"https://api.github.com/repos/nitlang/nit/issues/2002"},"comments":{"href":"https://api.github.com/repos/nitlang/nit/issues/2002/comments"},"review_comments":{"href":"https://api.github.com/repos/nitlang/nit/pulls/2002/comments"},"review_comment":{"href":"https://api.github.com/repos/nitlang/nit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nitlang/nit/pulls/2002/commits"},"statuses":{"href":"https://api.github.com/repos/nitlang/nit/statuses/311bcb6b7e5e9259f6cce2e8c998670ddad8a3d4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":8,"additions":1053,"deletions":39,"changed_files":9}}