{"id":18281,"date":"2020-09-05T06:17:56","date_gmt":"2020-09-05T06:17:56","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=18281"},"modified":"2022-04-13T15:58:33","modified_gmt":"2022-04-13T15:58:33","slug":"what-is-the-difference-between-rest-api-endpoint","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/what-is-the-difference-between-rest-api-endpoint\/","title":{"rendered":"What is the difference between REST, API &#038; EndPoint?"},"content":{"rendered":"\n<p><strong>API<\/strong>&#8211;<\/p>\n\n\n\n<p>API is a very broad term. Generally, it&#8217;s how one piece of code talks to another. In web development API often refers to the way in which we retrieve information from an online service. The API documentation will give you a list of URLs, query parameters, and other information on how to make a request from the API, and inform you what sort of response will be given for each query.<\/p>\n\n\n\n<p><strong>REST<\/strong>&#8211;<\/p>\n\n\n\n<p>Rest is a set of rules\/standards\/guidelines for how to build a web API. Since there are many ways to do so, having an agreed-upon system of structuring an API saves time in making decisions when building one, and saves time in understanding how to use one.<\/p>\n\n\n\n<p><strong>Endpoint-<\/strong><\/p>\n\n\n\n<p>Endpoint on the other hand, endpoint is the place off interaction between applications. Endpoint is a URL that enables the API to gain access to resources on a server.In simple terms, an endpoint is the the point of entry in a communication channel when two systems are interacting. It refers to touch points of the communication between an API and a server. API operate through &#8220;Request&#8221; &amp; &#8220;Response&#8221;.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"688\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/09\/endpoint-1024x688.png\" alt=\"\" class=\"wp-image-18286\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/09\/endpoint-1024x688.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/09\/endpoint-300x202.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/09\/endpoint-768x516.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/09\/endpoint-1536x1033.png 1536w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/09\/endpoint.png 1663w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>API&#8211; API is a very broad term. Generally, it&#8217;s how one piece of code talks to another. In web development API often refers to the way in which we retrieve information from an online service. The API documentation will give you a list of URLs, query parameters, and other information on how to make a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":18284,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-18281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/18281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=18281"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/18281\/revisions"}],"predecessor-version":[{"id":18287,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/18281\/revisions\/18287"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/18284"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=18281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=18281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=18281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}