{"id":4226,"date":"2018-08-13T22:19:08","date_gmt":"2018-08-13T20:19:08","guid":{"rendered":"http:\/\/www.laurentmarot.fr\/wordpress\/?p=4226"},"modified":"2018-08-13T22:34:13","modified_gmt":"2018-08-13T20:34:13","slug":"restful-api-for-the-dummies","status":"publish","type":"post","link":"https:\/\/www.laurentmarot.fr\/wordpress\/?p=4226","title":{"rendered":"RESTful API for the dummies"},"content":{"rendered":"<p>An Application Program Interface aka API is code that allows two software programs to communicate with each another. The API spells out the proper way for a developer to write some code requesting services from an operating system or other applications. In a web context, APIs allow communication between two webapps (or a web app and a client that is not always a brose) without any browser.<\/p>\n<p>A RESTful API,\u00a0also referred to as a RESTful web service, is an Application Program Interface that uses HTTP requests to GET, PUT, POST and DELETE data.<\/p>\n<p>A RESTful API\u00a0 is based on REpresentational State Transfer (REST) technology, an architectural style and approach to communications often used in web services development.<\/p>\n<p>REST technology is generally preferred to the more robust Simple Object Access Protocol (SOAP) technology because REST leverages less bandwidth, making it more suitable for internet usage.<\/p>\n<p>The REST used by browsers can be thought of as the language of the internet. With cloud use on the rise, APIs are emerging to expose web services. REST is a logical choice for building APIs that allow users to connect and interact with c<a href=\"https:\/\/searchcloudprovider.techtarget.com\/definition\/cloud-services\">l<\/a>oud services. RESTful APIs are used by such sites as Amazon, Google, LinkedIn and Twitter.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>A la base, j&rsquo;aimais bien <a href=\"https:\/\/searchmicroservices.techtarget.com\/definition\/RESTful-API\">cet article<\/a> pour une partie de son contenu mais pas pour le plan de construction et comme j&rsquo;avais besoin d&rsquo;expliquer pourquoi certaines API ne respectaient pas les concepts REST, j&rsquo;ai eu besoin de r\u00e9-\u00e9crire cette introduction.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>An Application Program Interface aka API is code that allows two software programs to communicate with each another. The API spells out the proper way for a developer to write some code requesting services from an operating system or other applications. In a web context, APIs allow communication between two webapps (or a web app [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,39,7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4226"}],"collection":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4226"}],"version-history":[{"count":6,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4226\/revisions"}],"predecessor-version":[{"id":4232,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4226\/revisions\/4232"}],"wp:attachment":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}