{"action":"created","comment":{"url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/comments/66932746","id":66932746,"diff_hunk":"@@ -0,0 +1,49 @@\n+---\n+title: Qu'est-ce qu'une API ?\n+layout: post\n+---\n+\n+Une API est un acronyme anglo-saxon signifiant *Application Programming Interface*. La notion la plus importante est **interface** : une API est en réalité un contrat passé entre deux systèmes informatiques afin qu'ils puissent communiquer ensemble.\n+\n+Il n'est pas nécessaire d'avoir une API afin que deux programmes puissent communiquer ensemble, un programme peut utiliser une inferface humaine&nbsp;:\n+\n+> **Sans API&nbsp;:**\n+> Une application récupère les données météo à Paris en ouvrant la page [meteofrance.com](http://www.meteofrance.com/previsions-meteo-france/paris/75) et en la lisant tel qu'un humain le ferait, méthode qui n'est pas fiable car il n'y a pas de contrat.\n+\n+> **Avec API&nbsp;:**\n+> Une application récupère les données météo à Paris en utilisant l'API [infoclimat](http://www.infoclimat.fr/api-previsions-meteo.html?id=2988507&cntry=FR) et qui renvoie une reponse structurée compréhensible par un ordinteur.\n+\n+Vous les utilisez peut-être déjà sans le savoir&nbsp;:\n+\n+  * l'API de twitter dans toutes les applications tierces récupérant les tweets\n+  * l'API de [base adresse nationnale](https://adresse.data.gouv.fr/) pour géocoder une adresse","path":"_posts/2016-06-13-qu-est-ce-qu-une-api.md","position":19,"original_position":19,"commit_id":"e395108b5a8b79f0fd2e0b17a9ffa02930d3c556","original_commit_id":"e395108b5a8b79f0fd2e0b17a9ffa02930d3c556","user":{"login":"MattiSG","id":222463,"avatar_url":"https://avatars.githubusercontent.com/u/222463?v=3","gravatar_id":"","url":"https://api.github.com/users/MattiSG","html_url":"https://github.com/MattiSG","followers_url":"https://api.github.com/users/MattiSG/followers","following_url":"https://api.github.com/users/MattiSG/following{/other_user}","gists_url":"https://api.github.com/users/MattiSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattiSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattiSG/subscriptions","organizations_url":"https://api.github.com/users/MattiSG/orgs","repos_url":"https://api.github.com/users/MattiSG/repos","events_url":"https://api.github.com/users/MattiSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattiSG/received_events","type":"User","site_admin":false},"body":"Ben, c'est un exemple  :wink:","created_at":"2016-06-14T09:00:26Z","updated_at":"2016-06-14T09:00:26Z","html_url":"https://github.com/sgmap/api.gouv.fr/pull/101#discussion_r66932746","pull_request_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/comments/66932746"},"html":{"href":"https://github.com/sgmap/api.gouv.fr/pull/101#discussion_r66932746"},"pull_request":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/101","id":73579141,"html_url":"https://github.com/sgmap/api.gouv.fr/pull/101","diff_url":"https://github.com/sgmap/api.gouv.fr/pull/101.diff","patch_url":"https://github.com/sgmap/api.gouv.fr/pull/101.patch","issue_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/101","number":101,"state":"open","locked":false,"title":"Ajout d'un post de blog pour définir une API","user":{"login":"ThibautGery","id":5861569,"avatar_url":"https://avatars.githubusercontent.com/u/5861569?v=3","gravatar_id":"","url":"https://api.github.com/users/ThibautGery","html_url":"https://github.com/ThibautGery","followers_url":"https://api.github.com/users/ThibautGery/followers","following_url":"https://api.github.com/users/ThibautGery/following{/other_user}","gists_url":"https://api.github.com/users/ThibautGery/gists{/gist_id}","starred_url":"https://api.github.com/users/ThibautGery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThibautGery/subscriptions","organizations_url":"https://api.github.com/users/ThibautGery/orgs","repos_url":"https://api.github.com/users/ThibautGery/repos","events_url":"https://api.github.com/users/ThibautGery/events{/privacy}","received_events_url":"https://api.github.com/users/ThibautGery/received_events","type":"User","site_admin":false},"body":"Disponible ici : http://dev.api.gouv.fr/2016/06/13/qu-est-ce-qu-une-api.html","created_at":"2016-06-13T13:54:07Z","updated_at":"2016-06-14T09:00:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"468705d4486c18c75a8e9e95e6eb06ad42455b7d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/101/commits","review_comments_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/101/comments","review_comment_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/101/comments","statuses_url":"https://api.github.com/repos/sgmap/api.gouv.fr/statuses/e395108b5a8b79f0fd2e0b17a9ffa02930d3c556","head":{"label":"sgmap:blog","ref":"blog","sha":"e395108b5a8b79f0fd2e0b17a9ffa02930d3c556","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":52606753,"name":"api.gouv.fr","full_name":"sgmap/api.gouv.fr","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/api.gouv.fr","description":"Liste les API disponibles au sein du gouvernement Français","fork":false,"url":"https://api.github.com/repos/sgmap/api.gouv.fr","forks_url":"https://api.github.com/repos/sgmap/api.gouv.fr/forks","keys_url":"https://api.github.com/repos/sgmap/api.gouv.fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/api.gouv.fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/api.gouv.fr/teams","hooks_url":"https://api.github.com/repos/sgmap/api.gouv.fr/hooks","issue_events_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/api.gouv.fr/events","assignees_url":"https://api.github.com/repos/sgmap/api.gouv.fr/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/api.gouv.fr/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/api.gouv.fr/tags","blobs_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/api.gouv.fr/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/api.gouv.fr/languages","stargazers_url":"https://api.github.com/repos/sgmap/api.gouv.fr/stargazers","contributors_url":"https://api.github.com/repos/sgmap/api.gouv.fr/contributors","subscribers_url":"https://api.github.com/repos/sgmap/api.gouv.fr/subscribers","subscription_url":"https://api.github.com/repos/sgmap/api.gouv.fr/subscription","commits_url":"https://api.github.com/repos/sgmap/api.gouv.fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/api.gouv.fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/api.gouv.fr/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/api.gouv.fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/api.gouv.fr/merges","archive_url":"https://api.github.com/repos/sgmap/api.gouv.fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/api.gouv.fr/downloads","issues_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/api.gouv.fr/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/api.gouv.fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/api.gouv.fr/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/api.gouv.fr/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/api.gouv.fr/deployments","created_at":"2016-02-26T13:38:06Z","updated_at":"2016-04-29T15:05:16Z","pushed_at":"2016-06-14T08:11:57Z","git_url":"git://github.com/sgmap/api.gouv.fr.git","ssh_url":"git@github.com:sgmap/api.gouv.fr.git","clone_url":"https://github.com/sgmap/api.gouv.fr.git","svn_url":"https://github.com/sgmap/api.gouv.fr","homepage":"https://api.gouv.fr","size":1754,"stargazers_count":6,"watchers_count":6,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":12,"forks":5,"open_issues":12,"watchers":6,"default_branch":"gh-pages"}},"base":{"label":"sgmap:gh-pages","ref":"gh-pages","sha":"64f1fad76530f29133de5e0f5cf36500f17731fa","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":52606753,"name":"api.gouv.fr","full_name":"sgmap/api.gouv.fr","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/api.gouv.fr","description":"Liste les API disponibles au sein du gouvernement Français","fork":false,"url":"https://api.github.com/repos/sgmap/api.gouv.fr","forks_url":"https://api.github.com/repos/sgmap/api.gouv.fr/forks","keys_url":"https://api.github.com/repos/sgmap/api.gouv.fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/api.gouv.fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/api.gouv.fr/teams","hooks_url":"https://api.github.com/repos/sgmap/api.gouv.fr/hooks","issue_events_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/api.gouv.fr/events","assignees_url":"https://api.github.com/repos/sgmap/api.gouv.fr/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/api.gouv.fr/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/api.gouv.fr/tags","blobs_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/api.gouv.fr/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/api.gouv.fr/languages","stargazers_url":"https://api.github.com/repos/sgmap/api.gouv.fr/stargazers","contributors_url":"https://api.github.com/repos/sgmap/api.gouv.fr/contributors","subscribers_url":"https://api.github.com/repos/sgmap/api.gouv.fr/subscribers","subscription_url":"https://api.github.com/repos/sgmap/api.gouv.fr/subscription","commits_url":"https://api.github.com/repos/sgmap/api.gouv.fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/api.gouv.fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/api.gouv.fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/api.gouv.fr/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/api.gouv.fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/api.gouv.fr/merges","archive_url":"https://api.github.com/repos/sgmap/api.gouv.fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/api.gouv.fr/downloads","issues_url":"https://api.github.com/repos/sgmap/api.gouv.fr/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/api.gouv.fr/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/api.gouv.fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/api.gouv.fr/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/api.gouv.fr/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/api.gouv.fr/deployments","created_at":"2016-02-26T13:38:06Z","updated_at":"2016-04-29T15:05:16Z","pushed_at":"2016-06-14T08:11:57Z","git_url":"git://github.com/sgmap/api.gouv.fr.git","ssh_url":"git@github.com:sgmap/api.gouv.fr.git","clone_url":"https://github.com/sgmap/api.gouv.fr.git","svn_url":"https://github.com/sgmap/api.gouv.fr","homepage":"https://api.gouv.fr","size":1754,"stargazers_count":6,"watchers_count":6,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":12,"forks":5,"open_issues":12,"watchers":6,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/101"},"html":{"href":"https://github.com/sgmap/api.gouv.fr/pull/101"},"issue":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/101"},"comments":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/sgmap/api.gouv.fr/statuses/e395108b5a8b79f0fd2e0b17a9ffa02930d3c556"}}}}
{"actor":{"display_login":"MattiSG"}}