{"action":"created","comment":{"url":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/comments/39923829","id":39923829,"diff_hunk":"@@ -78,4 +79,69 @@ public function modificarIncidente($incidente)\n \n \t\t\treturn $resultado;\n \t    }\n+\n+\t    public function getEspecies()\n+\t    {\n+\t   \t\t$pagina = Request::get('pagina');\n+\t   \t\t$resultados = Request::get('resultados');\n+\t   \t\t$especies = Especie::all();\n+\n+\t   \t\t// Validar que los dos parámetros de paginación fueron enviados, de lo contrario mandar todas las especies\n+\t   \t\tif(!is_null($pagina) && !is_null($resultados))\n+\t   \t\t{\n+\t\t\t\tEspecie::resolveConnection()->getPaginator()->setCurrentPage($pagina);\n+\t\t   \t\t$especies = Especie::paginate($resultados);\t   \t\t\t\n+\t   \t\t}\n+\n+\t   \t\treturn $especies;\t    \t\n+\t    }\n+\n+\t    public function crearEspecie($especie)\n+\t    {\n+\t\t\t$nuevaEspecie = new Especie;\n+\t\t\t$nuevaEspecie = $especie;\n+\t\t\t$resultado = $nuevaEspecie -> save(); \n+\n+\t    \tif($resultado)\n+\t    \t{\n+\t\t\t\treturn 200;\t    \t\t\n+\t    \t}\n+\n+\t    \treturn 500;\n+\t    }\n+\n+\t    public function modificarEspecie($especie)","path":"Api/OMMFCM/app/services/ServicioOMMFCM.php","position":43,"original_position":43,"commit_id":"9f9c643a60e0b97febd3df03193139eb102ec311","original_commit_id":"9f9c643a60e0b97febd3df03193139eb102ec311","user":{"login":"chsalgado","id":11039314,"avatar_url":"https://avatars.githubusercontent.com/u/11039314?v=3","gravatar_id":"","url":"https://api.github.com/users/chsalgado","html_url":"https://github.com/chsalgado","followers_url":"https://api.github.com/users/chsalgado/followers","following_url":"https://api.github.com/users/chsalgado/following{/other_user}","gists_url":"https://api.github.com/users/chsalgado/gists{/gist_id}","starred_url":"https://api.github.com/users/chsalgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chsalgado/subscriptions","organizations_url":"https://api.github.com/users/chsalgado/orgs","repos_url":"https://api.github.com/users/chsalgado/repos","events_url":"https://api.github.com/users/chsalgado/events{/privacy}","received_events_url":"https://api.github.com/users/chsalgado/received_events","type":"User","site_admin":false},"body":"Recibir el id como parámetro para consistencia?","created_at":"2015-09-19T21:16:27Z","updated_at":"2015-09-19T21:16:27Z","html_url":"https://github.com/chsalgado/OMMFCM/pull/21#discussion_r39923829","pull_request_url":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/comments/39923829"},"html":{"href":"https://github.com/chsalgado/OMMFCM/pull/21#discussion_r39923829"},"pull_request":{"href":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/21","id":45483529,"html_url":"https://github.com/chsalgado/OMMFCM/pull/21","diff_url":"https://github.com/chsalgado/OMMFCM/pull/21.diff","patch_url":"https://github.com/chsalgado/OMMFCM/pull/21.patch","issue_url":"https://api.github.com/repos/chsalgado/OMMFCM/issues/21","number":21,"state":"open","locked":false,"title":"Especies","user":{"login":"jorgegonzac","id":5820008,"avatar_url":"https://avatars.githubusercontent.com/u/5820008?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgegonzac","html_url":"https://github.com/jorgegonzac","followers_url":"https://api.github.com/users/jorgegonzac/followers","following_url":"https://api.github.com/users/jorgegonzac/following{/other_user}","gists_url":"https://api.github.com/users/jorgegonzac/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgegonzac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgegonzac/subscriptions","organizations_url":"https://api.github.com/users/jorgegonzac/orgs","repos_url":"https://api.github.com/users/jorgegonzac/repos","events_url":"https://api.github.com/users/jorgegonzac/events{/privacy}","received_events_url":"https://api.github.com/users/jorgegonzac/received_events","type":"User","site_admin":false},"body":"Se crearon los métodos necesarios para las rutas de especie. Se\nagregaron códigos de error a los métodos. Se modificó el modelo de\nespecie para agregarle la primary key.","created_at":"2015-09-19T20:18:52Z","updated_at":"2015-09-19T21:16:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e645cef9d80a1c030554b68a0bfd5b9057d728ea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/21/commits","review_comments_url":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/21/comments","review_comment_url":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chsalgado/OMMFCM/issues/21/comments","statuses_url":"https://api.github.com/repos/chsalgado/OMMFCM/statuses/9f9c643a60e0b97febd3df03193139eb102ec311","head":{"label":"chsalgado:jorgegonzac/especie","ref":"jorgegonzac/especie","sha":"9f9c643a60e0b97febd3df03193139eb102ec311","user":{"login":"chsalgado","id":11039314,"avatar_url":"https://avatars.githubusercontent.com/u/11039314?v=3","gravatar_id":"","url":"https://api.github.com/users/chsalgado","html_url":"https://github.com/chsalgado","followers_url":"https://api.github.com/users/chsalgado/followers","following_url":"https://api.github.com/users/chsalgado/following{/other_user}","gists_url":"https://api.github.com/users/chsalgado/gists{/gist_id}","starred_url":"https://api.github.com/users/chsalgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chsalgado/subscriptions","organizations_url":"https://api.github.com/users/chsalgado/orgs","repos_url":"https://api.github.com/users/chsalgado/repos","events_url":"https://api.github.com/users/chsalgado/events{/privacy}","received_events_url":"https://api.github.com/users/chsalgado/received_events","type":"User","site_admin":false},"repo":{"id":42335036,"name":"OMMFCM","full_name":"chsalgado/OMMFCM","owner":{"login":"chsalgado","id":11039314,"avatar_url":"https://avatars.githubusercontent.com/u/11039314?v=3","gravatar_id":"","url":"https://api.github.com/users/chsalgado","html_url":"https://github.com/chsalgado","followers_url":"https://api.github.com/users/chsalgado/followers","following_url":"https://api.github.com/users/chsalgado/following{/other_user}","gists_url":"https://api.github.com/users/chsalgado/gists{/gist_id}","starred_url":"https://api.github.com/users/chsalgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chsalgado/subscriptions","organizations_url":"https://api.github.com/users/chsalgado/orgs","repos_url":"https://api.github.com/users/chsalgado/repos","events_url":"https://api.github.com/users/chsalgado/events{/privacy}","received_events_url":"https://api.github.com/users/chsalgado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chsalgado/OMMFCM","description":"Proyecto tlacuaches","fork":false,"url":"https://api.github.com/repos/chsalgado/OMMFCM","forks_url":"https://api.github.com/repos/chsalgado/OMMFCM/forks","keys_url":"https://api.github.com/repos/chsalgado/OMMFCM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chsalgado/OMMFCM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chsalgado/OMMFCM/teams","hooks_url":"https://api.github.com/repos/chsalgado/OMMFCM/hooks","issue_events_url":"https://api.github.com/repos/chsalgado/OMMFCM/issues/events{/number}","events_url":"https://api.github.com/repos/chsalgado/OMMFCM/events","assignees_url":"https://api.github.com/repos/chsalgado/OMMFCM/assignees{/user}","branches_url":"https://api.github.com/repos/chsalgado/OMMFCM/branches{/branch}","tags_url":"https://api.github.com/repos/chsalgado/OMMFCM/tags","blobs_url":"https://api.github.com/repos/chsalgado/OMMFCM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chsalgado/OMMFCM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chsalgado/OMMFCM/git/refs{/sha}","trees_url":"https://api.github.com/repos/chsalgado/OMMFCM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chsalgado/OMMFCM/statuses/{sha}","languages_url":"https://api.github.com/repos/chsalgado/OMMFCM/languages","stargazers_url":"https://api.github.com/repos/chsalgado/OMMFCM/stargazers","contributors_url":"https://api.github.com/repos/chsalgado/OMMFCM/contributors","subscribers_url":"https://api.github.com/repos/chsalgado/OMMFCM/subscribers","subscription_url":"https://api.github.com/repos/chsalgado/OMMFCM/subscription","commits_url":"https://api.github.com/repos/chsalgado/OMMFCM/commits{/sha}","git_commits_url":"https://api.github.com/repos/chsalgado/OMMFCM/git/commits{/sha}","comments_url":"https://api.github.com/repos/chsalgado/OMMFCM/comments{/number}","issue_comment_url":"https://api.github.com/repos/chsalgado/OMMFCM/issues/comments{/number}","contents_url":"https://api.github.com/repos/chsalgado/OMMFCM/contents/{+path}","compare_url":"https://api.github.com/repos/chsalgado/OMMFCM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chsalgado/OMMFCM/merges","archive_url":"https://api.github.com/repos/chsalgado/OMMFCM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chsalgado/OMMFCM/downloads","issues_url":"https://api.github.com/repos/chsalgado/OMMFCM/issues{/number}","pulls_url":"https://api.github.com/repos/chsalgado/OMMFCM/pulls{/number}","milestones_url":"https://api.github.com/repos/chsalgado/OMMFCM/milestones{/number}","notifications_url":"https://api.github.com/repos/chsalgado/OMMFCM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chsalgado/OMMFCM/labels{/name}","releases_url":"https://api.github.com/repos/chsalgado/OMMFCM/releases{/id}","created_at":"2015-09-11T22:25:05Z","updated_at":"2015-09-15T21:47:51Z","pushed_at":"2015-09-19T20:45:58Z","git_url":"git://github.com/chsalgado/OMMFCM.git","ssh_url":"git@github.com:chsalgado/OMMFCM.git","clone_url":"https://github.com/chsalgado/OMMFCM.git","svn_url":"https://github.com/chsalgado/OMMFCM","homepage":null,"size":552,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"chsalgado:master","ref":"master","sha":"fd26e79ac2883d4b60509332fcbe56e6e434cee7","user":{"login":"chsalgado","id":11039314,"avatar_url":"https://avatars.githubusercontent.com/u/11039314?v=3","gravatar_id":"","url":"https://api.github.com/users/chsalgado","html_url":"https://github.com/chsalgado","followers_url":"https://api.github.com/users/chsalgado/followers","following_url":"https://api.github.com/users/chsalgado/following{/other_user}","gists_url":"https://api.github.com/users/chsalgado/gists{/gist_id}","starred_url":"https://api.github.com/users/chsalgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chsalgado/subscriptions","organizations_url":"https://api.github.com/users/chsalgado/orgs","repos_url":"https://api.github.com/users/chsalgado/repos","events_url":"https://api.github.com/users/chsalgado/events{/privacy}","received_events_url":"https://api.github.com/users/chsalgado/received_events","type":"User","site_admin":false},"repo":{"id":42335036,"name":"OMMFCM","full_name":"chsalgado/OMMFCM","owner":{"login":"chsalgado","id":11039314,"avatar_url":"https://avatars.githubusercontent.com/u/11039314?v=3","gravatar_id":"","url":"https://api.github.com/users/chsalgado","html_url":"https://github.com/chsalgado","followers_url":"https://api.github.com/users/chsalgado/followers","following_url":"https://api.github.com/users/chsalgado/following{/other_user}","gists_url":"https://api.github.com/users/chsalgado/gists{/gist_id}","starred_url":"https://api.github.com/users/chsalgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chsalgado/subscriptions","organizations_url":"https://api.github.com/users/chsalgado/orgs","repos_url":"https://api.github.com/users/chsalgado/repos","events_url":"https://api.github.com/users/chsalgado/events{/privacy}","received_events_url":"https://api.github.com/users/chsalgado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chsalgado/OMMFCM","description":"Proyecto tlacuaches","fork":false,"url":"https://api.github.com/repos/chsalgado/OMMFCM","forks_url":"https://api.github.com/repos/chsalgado/OMMFCM/forks","keys_url":"https://api.github.com/repos/chsalgado/OMMFCM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chsalgado/OMMFCM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chsalgado/OMMFCM/teams","hooks_url":"https://api.github.com/repos/chsalgado/OMMFCM/hooks","issue_events_url":"https://api.github.com/repos/chsalgado/OMMFCM/issues/events{/number}","events_url":"https://api.github.com/repos/chsalgado/OMMFCM/events","assignees_url":"https://api.github.com/repos/chsalgado/OMMFCM/assignees{/user}","branches_url":"https://api.github.com/repos/chsalgado/OMMFCM/branches{/branch}","tags_url":"https://api.github.com/repos/chsalgado/OMMFCM/tags","blobs_url":"https://api.github.com/repos/chsalgado/OMMFCM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chsalgado/OMMFCM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chsalgado/OMMFCM/git/refs{/sha}","trees_url":"https://api.github.com/repos/chsalgado/OMMFCM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chsalgado/OMMFCM/statuses/{sha}","languages_url":"https://api.github.com/repos/chsalgado/OMMFCM/languages","stargazers_url":"https://api.github.com/repos/chsalgado/OMMFCM/stargazers","contributors_url":"https://api.github.com/repos/chsalgado/OMMFCM/contributors","subscribers_url":"https://api.github.com/repos/chsalgado/OMMFCM/subscribers","subscription_url":"https://api.github.com/repos/chsalgado/OMMFCM/subscription","commits_url":"https://api.github.com/repos/chsalgado/OMMFCM/commits{/sha}","git_commits_url":"https://api.github.com/repos/chsalgado/OMMFCM/git/commits{/sha}","comments_url":"https://api.github.com/repos/chsalgado/OMMFCM/comments{/number}","issue_comment_url":"https://api.github.com/repos/chsalgado/OMMFCM/issues/comments{/number}","contents_url":"https://api.github.com/repos/chsalgado/OMMFCM/contents/{+path}","compare_url":"https://api.github.com/repos/chsalgado/OMMFCM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chsalgado/OMMFCM/merges","archive_url":"https://api.github.com/repos/chsalgado/OMMFCM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chsalgado/OMMFCM/downloads","issues_url":"https://api.github.com/repos/chsalgado/OMMFCM/issues{/number}","pulls_url":"https://api.github.com/repos/chsalgado/OMMFCM/pulls{/number}","milestones_url":"https://api.github.com/repos/chsalgado/OMMFCM/milestones{/number}","notifications_url":"https://api.github.com/repos/chsalgado/OMMFCM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chsalgado/OMMFCM/labels{/name}","releases_url":"https://api.github.com/repos/chsalgado/OMMFCM/releases{/id}","created_at":"2015-09-11T22:25:05Z","updated_at":"2015-09-15T21:47:51Z","pushed_at":"2015-09-19T20:45:58Z","git_url":"git://github.com/chsalgado/OMMFCM.git","ssh_url":"git@github.com:chsalgado/OMMFCM.git","clone_url":"https://github.com/chsalgado/OMMFCM.git","svn_url":"https://github.com/chsalgado/OMMFCM","homepage":null,"size":552,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/21"},"html":{"href":"https://github.com/chsalgado/OMMFCM/pull/21"},"issue":{"href":"https://api.github.com/repos/chsalgado/OMMFCM/issues/21"},"comments":{"href":"https://api.github.com/repos/chsalgado/OMMFCM/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chsalgado/OMMFCM/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/chsalgado/OMMFCM/statuses/9f9c643a60e0b97febd3df03193139eb102ec311"}}}}