{"action":"created","comment":{"url":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/comments/45413076","id":45413076,"diff_hunk":"@@ -0,0 +1,85 @@\n+module Api\n+  module V1\n+    class MembersController < ApplicationController\n+      load_resource only: [:index, :show, :update, :destroy]\n+      authorize_resource\n+\n+      def index\n+        render json: @members\n+      end\n+\n+      def show\n+        render json: @member\n+      end\n+\n+      def create\n+        member = create_member\n+\n+        unless member.valid?\n+          return render json: errors(member), status: :unprocessable_entity\n+        end\n+\n+        render json: member, status: :created\n+      end\n+\n+      def update\n+        update_member","path":"app/controllers/api/v1/members_controller.rb","position":26,"original_position":26,"commit_id":"0183da57f514b8241fe80a8c791951125b4d4507","original_commit_id":"0183da57f514b8241fe80a8c791951125b4d4507","user":{"login":"jimenezjrs","id":633095,"avatar_url":"https://avatars.githubusercontent.com/u/633095?v=3","gravatar_id":"","url":"https://api.github.com/users/jimenezjrs","html_url":"https://github.com/jimenezjrs","followers_url":"https://api.github.com/users/jimenezjrs/followers","following_url":"https://api.github.com/users/jimenezjrs/following{/other_user}","gists_url":"https://api.github.com/users/jimenezjrs/gists{/gist_id}","starred_url":"https://api.github.com/users/jimenezjrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimenezjrs/subscriptions","organizations_url":"https://api.github.com/users/jimenezjrs/orgs","repos_url":"https://api.github.com/users/jimenezjrs/repos","events_url":"https://api.github.com/users/jimenezjrs/events{/privacy}","received_events_url":"https://api.github.com/users/jimenezjrs/received_events","type":"User","site_admin":false},"body":"@EduardoBautista ¿Qué opinarías de meter el update_member en un before_action ...?","created_at":"2015-11-19T22:49:13Z","updated_at":"2015-11-19T22:49:13Z","html_url":"https://github.com/civica-digital/reto-mexico/pull/8#discussion_r45413076","pull_request_url":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/comments/45413076"},"html":{"href":"https://github.com/civica-digital/reto-mexico/pull/8#discussion_r45413076"},"pull_request":{"href":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/8","id":51245248,"html_url":"https://github.com/civica-digital/reto-mexico/pull/8","diff_url":"https://github.com/civica-digital/reto-mexico/pull/8.diff","patch_url":"https://github.com/civica-digital/reto-mexico/pull/8.patch","issue_url":"https://api.github.com/repos/civica-digital/reto-mexico/issues/8","number":8,"state":"open","locked":false,"title":"Members Endpoint","user":{"login":"EduardoBautista","id":1585126,"avatar_url":"https://avatars.githubusercontent.com/u/1585126?v=3","gravatar_id":"","url":"https://api.github.com/users/EduardoBautista","html_url":"https://github.com/EduardoBautista","followers_url":"https://api.github.com/users/EduardoBautista/followers","following_url":"https://api.github.com/users/EduardoBautista/following{/other_user}","gists_url":"https://api.github.com/users/EduardoBautista/gists{/gist_id}","starred_url":"https://api.github.com/users/EduardoBautista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EduardoBautista/subscriptions","organizations_url":"https://api.github.com/users/EduardoBautista/orgs","repos_url":"https://api.github.com/users/EduardoBautista/repos","events_url":"https://api.github.com/users/EduardoBautista/events{/privacy}","received_events_url":"https://api.github.com/users/EduardoBautista/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-11-19T16:26:16Z","updated_at":"2015-11-19T22:49:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c6bf5a24c3e546d491b96e14854fabf2197e777","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/8/commits","review_comments_url":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/8/comments","review_comment_url":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/comments{/number}","comments_url":"https://api.github.com/repos/civica-digital/reto-mexico/issues/8/comments","statuses_url":"https://api.github.com/repos/civica-digital/reto-mexico/statuses/0183da57f514b8241fe80a8c791951125b4d4507","head":{"label":"civica-digital:members","ref":"members","sha":"0183da57f514b8241fe80a8c791951125b4d4507","user":{"login":"civica-digital","id":10727864,"avatar_url":"https://avatars.githubusercontent.com/u/10727864?v=3","gravatar_id":"","url":"https://api.github.com/users/civica-digital","html_url":"https://github.com/civica-digital","followers_url":"https://api.github.com/users/civica-digital/followers","following_url":"https://api.github.com/users/civica-digital/following{/other_user}","gists_url":"https://api.github.com/users/civica-digital/gists{/gist_id}","starred_url":"https://api.github.com/users/civica-digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/civica-digital/subscriptions","organizations_url":"https://api.github.com/users/civica-digital/orgs","repos_url":"https://api.github.com/users/civica-digital/repos","events_url":"https://api.github.com/users/civica-digital/events{/privacy}","received_events_url":"https://api.github.com/users/civica-digital/received_events","type":"Organization","site_admin":false},"repo":{"id":46064559,"name":"reto-mexico","full_name":"civica-digital/reto-mexico","owner":{"login":"civica-digital","id":10727864,"avatar_url":"https://avatars.githubusercontent.com/u/10727864?v=3","gravatar_id":"","url":"https://api.github.com/users/civica-digital","html_url":"https://github.com/civica-digital","followers_url":"https://api.github.com/users/civica-digital/followers","following_url":"https://api.github.com/users/civica-digital/following{/other_user}","gists_url":"https://api.github.com/users/civica-digital/gists{/gist_id}","starred_url":"https://api.github.com/users/civica-digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/civica-digital/subscriptions","organizations_url":"https://api.github.com/users/civica-digital/orgs","repos_url":"https://api.github.com/users/civica-digital/repos","events_url":"https://api.github.com/users/civica-digital/events{/privacy}","received_events_url":"https://api.github.com/users/civica-digital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/civica-digital/reto-mexico","description":"","fork":false,"url":"https://api.github.com/repos/civica-digital/reto-mexico","forks_url":"https://api.github.com/repos/civica-digital/reto-mexico/forks","keys_url":"https://api.github.com/repos/civica-digital/reto-mexico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/civica-digital/reto-mexico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/civica-digital/reto-mexico/teams","hooks_url":"https://api.github.com/repos/civica-digital/reto-mexico/hooks","issue_events_url":"https://api.github.com/repos/civica-digital/reto-mexico/issues/events{/number}","events_url":"https://api.github.com/repos/civica-digital/reto-mexico/events","assignees_url":"https://api.github.com/repos/civica-digital/reto-mexico/assignees{/user}","branches_url":"https://api.github.com/repos/civica-digital/reto-mexico/branches{/branch}","tags_url":"https://api.github.com/repos/civica-digital/reto-mexico/tags","blobs_url":"https://api.github.com/repos/civica-digital/reto-mexico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/civica-digital/reto-mexico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/civica-digital/reto-mexico/git/refs{/sha}","trees_url":"https://api.github.com/repos/civica-digital/reto-mexico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/civica-digital/reto-mexico/statuses/{sha}","languages_url":"https://api.github.com/repos/civica-digital/reto-mexico/languages","stargazers_url":"https://api.github.com/repos/civica-digital/reto-mexico/stargazers","contributors_url":"https://api.github.com/repos/civica-digital/reto-mexico/contributors","subscribers_url":"https://api.github.com/repos/civica-digital/reto-mexico/subscribers","subscription_url":"https://api.github.com/repos/civica-digital/reto-mexico/subscription","commits_url":"https://api.github.com/repos/civica-digital/reto-mexico/commits{/sha}","git_commits_url":"https://api.github.com/repos/civica-digital/reto-mexico/git/commits{/sha}","comments_url":"https://api.github.com/repos/civica-digital/reto-mexico/comments{/number}","issue_comment_url":"https://api.github.com/repos/civica-digital/reto-mexico/issues/comments{/number}","contents_url":"https://api.github.com/repos/civica-digital/reto-mexico/contents/{+path}","compare_url":"https://api.github.com/repos/civica-digital/reto-mexico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/civica-digital/reto-mexico/merges","archive_url":"https://api.github.com/repos/civica-digital/reto-mexico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/civica-digital/reto-mexico/downloads","issues_url":"https://api.github.com/repos/civica-digital/reto-mexico/issues{/number}","pulls_url":"https://api.github.com/repos/civica-digital/reto-mexico/pulls{/number}","milestones_url":"https://api.github.com/repos/civica-digital/reto-mexico/milestones{/number}","notifications_url":"https://api.github.com/repos/civica-digital/reto-mexico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/civica-digital/reto-mexico/labels{/name}","releases_url":"https://api.github.com/repos/civica-digital/reto-mexico/releases{/id}","created_at":"2015-11-12T16:11:43Z","updated_at":"2015-11-12T17:05:26Z","pushed_at":"2015-11-19T22:09:03Z","git_url":"git://github.com/civica-digital/reto-mexico.git","ssh_url":"git@github.com:civica-digital/reto-mexico.git","clone_url":"https://github.com/civica-digital/reto-mexico.git","svn_url":"https://github.com/civica-digital/reto-mexico","homepage":null,"size":15472,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"dev"}},"base":{"label":"civica-digital:dev","ref":"dev","sha":"33ed4af1160454e0e81e31f83a2e4b9987e30659","user":{"login":"civica-digital","id":10727864,"avatar_url":"https://avatars.githubusercontent.com/u/10727864?v=3","gravatar_id":"","url":"https://api.github.com/users/civica-digital","html_url":"https://github.com/civica-digital","followers_url":"https://api.github.com/users/civica-digital/followers","following_url":"https://api.github.com/users/civica-digital/following{/other_user}","gists_url":"https://api.github.com/users/civica-digital/gists{/gist_id}","starred_url":"https://api.github.com/users/civica-digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/civica-digital/subscriptions","organizations_url":"https://api.github.com/users/civica-digital/orgs","repos_url":"https://api.github.com/users/civica-digital/repos","events_url":"https://api.github.com/users/civica-digital/events{/privacy}","received_events_url":"https://api.github.com/users/civica-digital/received_events","type":"Organization","site_admin":false},"repo":{"id":46064559,"name":"reto-mexico","full_name":"civica-digital/reto-mexico","owner":{"login":"civica-digital","id":10727864,"avatar_url":"https://avatars.githubusercontent.com/u/10727864?v=3","gravatar_id":"","url":"https://api.github.com/users/civica-digital","html_url":"https://github.com/civica-digital","followers_url":"https://api.github.com/users/civica-digital/followers","following_url":"https://api.github.com/users/civica-digital/following{/other_user}","gists_url":"https://api.github.com/users/civica-digital/gists{/gist_id}","starred_url":"https://api.github.com/users/civica-digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/civica-digital/subscriptions","organizations_url":"https://api.github.com/users/civica-digital/orgs","repos_url":"https://api.github.com/users/civica-digital/repos","events_url":"https://api.github.com/users/civica-digital/events{/privacy}","received_events_url":"https://api.github.com/users/civica-digital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/civica-digital/reto-mexico","description":"","fork":false,"url":"https://api.github.com/repos/civica-digital/reto-mexico","forks_url":"https://api.github.com/repos/civica-digital/reto-mexico/forks","keys_url":"https://api.github.com/repos/civica-digital/reto-mexico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/civica-digital/reto-mexico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/civica-digital/reto-mexico/teams","hooks_url":"https://api.github.com/repos/civica-digital/reto-mexico/hooks","issue_events_url":"https://api.github.com/repos/civica-digital/reto-mexico/issues/events{/number}","events_url":"https://api.github.com/repos/civica-digital/reto-mexico/events","assignees_url":"https://api.github.com/repos/civica-digital/reto-mexico/assignees{/user}","branches_url":"https://api.github.com/repos/civica-digital/reto-mexico/branches{/branch}","tags_url":"https://api.github.com/repos/civica-digital/reto-mexico/tags","blobs_url":"https://api.github.com/repos/civica-digital/reto-mexico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/civica-digital/reto-mexico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/civica-digital/reto-mexico/git/refs{/sha}","trees_url":"https://api.github.com/repos/civica-digital/reto-mexico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/civica-digital/reto-mexico/statuses/{sha}","languages_url":"https://api.github.com/repos/civica-digital/reto-mexico/languages","stargazers_url":"https://api.github.com/repos/civica-digital/reto-mexico/stargazers","contributors_url":"https://api.github.com/repos/civica-digital/reto-mexico/contributors","subscribers_url":"https://api.github.com/repos/civica-digital/reto-mexico/subscribers","subscription_url":"https://api.github.com/repos/civica-digital/reto-mexico/subscription","commits_url":"https://api.github.com/repos/civica-digital/reto-mexico/commits{/sha}","git_commits_url":"https://api.github.com/repos/civica-digital/reto-mexico/git/commits{/sha}","comments_url":"https://api.github.com/repos/civica-digital/reto-mexico/comments{/number}","issue_comment_url":"https://api.github.com/repos/civica-digital/reto-mexico/issues/comments{/number}","contents_url":"https://api.github.com/repos/civica-digital/reto-mexico/contents/{+path}","compare_url":"https://api.github.com/repos/civica-digital/reto-mexico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/civica-digital/reto-mexico/merges","archive_url":"https://api.github.com/repos/civica-digital/reto-mexico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/civica-digital/reto-mexico/downloads","issues_url":"https://api.github.com/repos/civica-digital/reto-mexico/issues{/number}","pulls_url":"https://api.github.com/repos/civica-digital/reto-mexico/pulls{/number}","milestones_url":"https://api.github.com/repos/civica-digital/reto-mexico/milestones{/number}","notifications_url":"https://api.github.com/repos/civica-digital/reto-mexico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/civica-digital/reto-mexico/labels{/name}","releases_url":"https://api.github.com/repos/civica-digital/reto-mexico/releases{/id}","created_at":"2015-11-12T16:11:43Z","updated_at":"2015-11-12T17:05:26Z","pushed_at":"2015-11-19T22:09:03Z","git_url":"git://github.com/civica-digital/reto-mexico.git","ssh_url":"git@github.com:civica-digital/reto-mexico.git","clone_url":"https://github.com/civica-digital/reto-mexico.git","svn_url":"https://github.com/civica-digital/reto-mexico","homepage":null,"size":15472,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/8"},"html":{"href":"https://github.com/civica-digital/reto-mexico/pull/8"},"issue":{"href":"https://api.github.com/repos/civica-digital/reto-mexico/issues/8"},"comments":{"href":"https://api.github.com/repos/civica-digital/reto-mexico/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/civica-digital/reto-mexico/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/civica-digital/reto-mexico/statuses/0183da57f514b8241fe80a8c791951125b4d4507"}}}}