{"action":"closed","number":75,"pull_request":{"url":"https://api.github.com/repos/yesdoc/api/pulls/75","id":47741504,"html_url":"https://github.com/yesdoc/api/pull/75","diff_url":"https://github.com/yesdoc/api/pull/75.diff","patch_url":"https://github.com/yesdoc/api/pull/75.patch","issue_url":"https://api.github.com/repos/yesdoc/api/issues/75","number":75,"state":"closed","locked":false,"title":"Implementación de compartición de análisis","user":{"login":"adamantike","id":3867850,"avatar_url":"https://avatars.githubusercontent.com/u/3867850?v=3","gravatar_id":"","url":"https://api.github.com/users/adamantike","html_url":"https://github.com/adamantike","followers_url":"https://api.github.com/users/adamantike/followers","following_url":"https://api.github.com/users/adamantike/following{/other_user}","gists_url":"https://api.github.com/users/adamantike/gists{/gist_id}","starred_url":"https://api.github.com/users/adamantike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamantike/subscriptions","organizations_url":"https://api.github.com/users/adamantike/orgs","repos_url":"https://api.github.com/users/adamantike/repos","events_url":"https://api.github.com/users/adamantike/events{/privacy}","received_events_url":"https://api.github.com/users/adamantike/received_events","type":"User","site_admin":false},"body":"Se implementa la funcionalidad de **compartición de análisis** a terceros. Esto incluye:\r\n\r\n**Modelos** (referenciados en yesdoc/doc#17):\r\n* Clase ```PermissionType```: Tipo de permiso, establece si el permiso brinda la autorización para ver y editar archivos de análisis y/o mediciones.\r\n* Clase ```Permission```: Establece el permiso, de un tipo determinado, a un usuario para acceder a un análisis específico.\r\n\r\n**Recursos API**:\r\n* ```/analysis/<analysis_id>/permissions```: Mediante **GET**, devuelve todos los permisos asociados al análisis. Mediante **POST** (**autenticado como el dueño del análisis**), permite crear un nuevo permiso para el análisis.\r\n* ```/permissions/<permission_id>```: Mediante **GET**, devuelve la información del permiso especificado. Mediante **PUT** (**autenticado como el dueño del análisis**), permite modificar **solamente** el tipo de permiso asociado. Mediante **DELETE** (**autenticado como el dueño del análisis**), permite eliminar el permiso.","created_at":"2015-10-15T03:45:31Z","updated_at":"2015-10-15T14:39:26Z","closed_at":"2015-10-15T14:39:26Z","merged_at":"2015-10-15T14:39:26Z","merge_commit_sha":"42d2d30e0b192c5b26d407d8ffe2e57d78cd3acd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yesdoc/api/pulls/75/commits","review_comments_url":"https://api.github.com/repos/yesdoc/api/pulls/75/comments","review_comment_url":"https://api.github.com/repos/yesdoc/api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yesdoc/api/issues/75/comments","statuses_url":"https://api.github.com/repos/yesdoc/api/statuses/512d930efb99e8b215ac3def9a39a02b9c18faf0","head":{"label":"adamantike:funcionalidad-permisos","ref":"funcionalidad-permisos","sha":"512d930efb99e8b215ac3def9a39a02b9c18faf0","user":{"login":"adamantike","id":3867850,"avatar_url":"https://avatars.githubusercontent.com/u/3867850?v=3","gravatar_id":"","url":"https://api.github.com/users/adamantike","html_url":"https://github.com/adamantike","followers_url":"https://api.github.com/users/adamantike/followers","following_url":"https://api.github.com/users/adamantike/following{/other_user}","gists_url":"https://api.github.com/users/adamantike/gists{/gist_id}","starred_url":"https://api.github.com/users/adamantike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamantike/subscriptions","organizations_url":"https://api.github.com/users/adamantike/orgs","repos_url":"https://api.github.com/users/adamantike/repos","events_url":"https://api.github.com/users/adamantike/events{/privacy}","received_events_url":"https://api.github.com/users/adamantike/received_events","type":"User","site_admin":false},"repo":{"id":36250721,"name":"salud-api","full_name":"adamantike/salud-api","owner":{"login":"adamantike","id":3867850,"avatar_url":"https://avatars.githubusercontent.com/u/3867850?v=3","gravatar_id":"","url":"https://api.github.com/users/adamantike","html_url":"https://github.com/adamantike","followers_url":"https://api.github.com/users/adamantike/followers","following_url":"https://api.github.com/users/adamantike/following{/other_user}","gists_url":"https://api.github.com/users/adamantike/gists{/gist_id}","starred_url":"https://api.github.com/users/adamantike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamantike/subscriptions","organizations_url":"https://api.github.com/users/adamantike/orgs","repos_url":"https://api.github.com/users/adamantike/repos","events_url":"https://api.github.com/users/adamantike/events{/privacy}","received_events_url":"https://api.github.com/users/adamantike/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adamantike/salud-api","description":"API Flask del asistente de salud personal","fork":true,"url":"https://api.github.com/repos/adamantike/salud-api","forks_url":"https://api.github.com/repos/adamantike/salud-api/forks","keys_url":"https://api.github.com/repos/adamantike/salud-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adamantike/salud-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adamantike/salud-api/teams","hooks_url":"https://api.github.com/repos/adamantike/salud-api/hooks","issue_events_url":"https://api.github.com/repos/adamantike/salud-api/issues/events{/number}","events_url":"https://api.github.com/repos/adamantike/salud-api/events","assignees_url":"https://api.github.com/repos/adamantike/salud-api/assignees{/user}","branches_url":"https://api.github.com/repos/adamantike/salud-api/branches{/branch}","tags_url":"https://api.github.com/repos/adamantike/salud-api/tags","blobs_url":"https://api.github.com/repos/adamantike/salud-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adamantike/salud-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adamantike/salud-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/adamantike/salud-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adamantike/salud-api/statuses/{sha}","languages_url":"https://api.github.com/repos/adamantike/salud-api/languages","stargazers_url":"https://api.github.com/repos/adamantike/salud-api/stargazers","contributors_url":"https://api.github.com/repos/adamantike/salud-api/contributors","subscribers_url":"https://api.github.com/repos/adamantike/salud-api/subscribers","subscription_url":"https://api.github.com/repos/adamantike/salud-api/subscription","commits_url":"https://api.github.com/repos/adamantike/salud-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/adamantike/salud-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/adamantike/salud-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/adamantike/salud-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/adamantike/salud-api/contents/{+path}","compare_url":"https://api.github.com/repos/adamantike/salud-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adamantike/salud-api/merges","archive_url":"https://api.github.com/repos/adamantike/salud-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adamantike/salud-api/downloads","issues_url":"https://api.github.com/repos/adamantike/salud-api/issues{/number}","pulls_url":"https://api.github.com/repos/adamantike/salud-api/pulls{/number}","milestones_url":"https://api.github.com/repos/adamantike/salud-api/milestones{/number}","notifications_url":"https://api.github.com/repos/adamantike/salud-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adamantike/salud-api/labels{/name}","releases_url":"https://api.github.com/repos/adamantike/salud-api/releases{/id}","created_at":"2015-05-25T19:37:38Z","updated_at":"2015-05-29T20:01:06Z","pushed_at":"2015-10-15T14:35:27Z","git_url":"git://github.com/adamantike/salud-api.git","ssh_url":"git@github.com:adamantike/salud-api.git","clone_url":"https://github.com/adamantike/salud-api.git","svn_url":"https://github.com/adamantike/salud-api","homepage":null,"size":499,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"yesdoc:master","ref":"master","sha":"0948f9236e9cc34e504e86a973d4643e861a52f4","user":{"login":"yesdoc","id":8800362,"avatar_url":"https://avatars.githubusercontent.com/u/8800362?v=3","gravatar_id":"","url":"https://api.github.com/users/yesdoc","html_url":"https://github.com/yesdoc","followers_url":"https://api.github.com/users/yesdoc/followers","following_url":"https://api.github.com/users/yesdoc/following{/other_user}","gists_url":"https://api.github.com/users/yesdoc/gists{/gist_id}","starred_url":"https://api.github.com/users/yesdoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yesdoc/subscriptions","organizations_url":"https://api.github.com/users/yesdoc/orgs","repos_url":"https://api.github.com/users/yesdoc/repos","events_url":"https://api.github.com/users/yesdoc/events{/privacy}","received_events_url":"https://api.github.com/users/yesdoc/received_events","type":"Organization","site_admin":false},"repo":{"id":35513605,"name":"api","full_name":"yesdoc/api","owner":{"login":"yesdoc","id":8800362,"avatar_url":"https://avatars.githubusercontent.com/u/8800362?v=3","gravatar_id":"","url":"https://api.github.com/users/yesdoc","html_url":"https://github.com/yesdoc","followers_url":"https://api.github.com/users/yesdoc/followers","following_url":"https://api.github.com/users/yesdoc/following{/other_user}","gists_url":"https://api.github.com/users/yesdoc/gists{/gist_id}","starred_url":"https://api.github.com/users/yesdoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yesdoc/subscriptions","organizations_url":"https://api.github.com/users/yesdoc/orgs","repos_url":"https://api.github.com/users/yesdoc/repos","events_url":"https://api.github.com/users/yesdoc/events{/privacy}","received_events_url":"https://api.github.com/users/yesdoc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yesdoc/api","description":"API Flask del asistente de salud personal","fork":false,"url":"https://api.github.com/repos/yesdoc/api","forks_url":"https://api.github.com/repos/yesdoc/api/forks","keys_url":"https://api.github.com/repos/yesdoc/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yesdoc/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yesdoc/api/teams","hooks_url":"https://api.github.com/repos/yesdoc/api/hooks","issue_events_url":"https://api.github.com/repos/yesdoc/api/issues/events{/number}","events_url":"https://api.github.com/repos/yesdoc/api/events","assignees_url":"https://api.github.com/repos/yesdoc/api/assignees{/user}","branches_url":"https://api.github.com/repos/yesdoc/api/branches{/branch}","tags_url":"https://api.github.com/repos/yesdoc/api/tags","blobs_url":"https://api.github.com/repos/yesdoc/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yesdoc/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yesdoc/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/yesdoc/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yesdoc/api/statuses/{sha}","languages_url":"https://api.github.com/repos/yesdoc/api/languages","stargazers_url":"https://api.github.com/repos/yesdoc/api/stargazers","contributors_url":"https://api.github.com/repos/yesdoc/api/contributors","subscribers_url":"https://api.github.com/repos/yesdoc/api/subscribers","subscription_url":"https://api.github.com/repos/yesdoc/api/subscription","commits_url":"https://api.github.com/repos/yesdoc/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/yesdoc/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/yesdoc/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/yesdoc/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/yesdoc/api/contents/{+path}","compare_url":"https://api.github.com/repos/yesdoc/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yesdoc/api/merges","archive_url":"https://api.github.com/repos/yesdoc/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yesdoc/api/downloads","issues_url":"https://api.github.com/repos/yesdoc/api/issues{/number}","pulls_url":"https://api.github.com/repos/yesdoc/api/pulls{/number}","milestones_url":"https://api.github.com/repos/yesdoc/api/milestones{/number}","notifications_url":"https://api.github.com/repos/yesdoc/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yesdoc/api/labels{/name}","releases_url":"https://api.github.com/repos/yesdoc/api/releases{/id}","created_at":"2015-05-12T21:29:31Z","updated_at":"2015-10-12T14:58:14Z","pushed_at":"2015-10-15T14:39:26Z","git_url":"git://github.com/yesdoc/api.git","ssh_url":"git@github.com:yesdoc/api.git","clone_url":"https://github.com/yesdoc/api.git","svn_url":"https://github.com/yesdoc/api","homepage":null,"size":745,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yesdoc/api/pulls/75"},"html":{"href":"https://github.com/yesdoc/api/pull/75"},"issue":{"href":"https://api.github.com/repos/yesdoc/api/issues/75"},"comments":{"href":"https://api.github.com/repos/yesdoc/api/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/yesdoc/api/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/yesdoc/api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yesdoc/api/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/yesdoc/api/statuses/512d930efb99e8b215ac3def9a39a02b9c18faf0"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"adamantike","id":3867850,"avatar_url":"https://avatars.githubusercontent.com/u/3867850?v=3","gravatar_id":"","url":"https://api.github.com/users/adamantike","html_url":"https://github.com/adamantike","followers_url":"https://api.github.com/users/adamantike/followers","following_url":"https://api.github.com/users/adamantike/following{/other_user}","gists_url":"https://api.github.com/users/adamantike/gists{/gist_id}","starred_url":"https://api.github.com/users/adamantike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamantike/subscriptions","organizations_url":"https://api.github.com/users/adamantike/orgs","repos_url":"https://api.github.com/users/adamantike/repos","events_url":"https://api.github.com/users/adamantike/events{/privacy}","received_events_url":"https://api.github.com/users/adamantike/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":6,"additions":678,"deletions":0,"changed_files":15}}