{"id":5101,"date":"2022-03-09T03:12:46","date_gmt":"2022-03-09T03:12:46","guid":{"rendered":"https:\/\/help.nafhaa.com\/?docs=nafhaa\/nafhaa-api"},"modified":"2023-01-06T08:39:52","modified_gmt":"2023-01-06T08:39:52","slug":"nafhaa-api","status":"publish","type":"docs","link":"https:\/\/help.nafhaa.com\/?docs=nafhaa\/nafhaa-api","title":{"rendered":"Nafhaa API"},"content":{"rendered":"\n<p>Application programming interfaces, or APIs, simplify software development and innovation by enabling applications to exchange data and functionality easily and securely. An\u00a0application programming interface, or API, enables companies to open up their applications\u2019 data and functionality to external third-party developers, business partners, and internal departments within their companies. This allows services and products to communicate with each other and leverage each other\u2019s data and functionality through a\u00a0documented interface. Developers don&#8217;t need to know how an API is implemented; they simply use the interface to communicate with other products and services.\u00a0API use\u00a0has surged over the past decade, to the degree that many of the most popular\u00a0web applications\u00a0today would not be possible without APIs.<\/p>\n\n\n\n<p>Here\u2019s how an API works:<\/p>\n\n\n\n<ol><li><strong>Request<\/strong>: <strong>A client application initiates an API call\u00a0<\/strong>to retrieve information\u2014also known as a\u00a0<em>request<\/em>. This request is processed from an application to the web server via the API\u2019s Uniform Resource Identifier (URI) and includes a request verb, headers, and sometimes, a request body.<\/li><li><strong>Request Validation And Transfer<\/strong>: <strong>After receiving a valid request<\/strong>, the API makes a call to the external program or web server.<\/li><li><strong>Response:<\/strong> <strong>The server sends a<em>\u00a0response<\/em>\u00a0<\/strong>to the API with the requested information.<\/li><li><strong>Output:<\/strong> <strong>The API transfers the data\u00a0<\/strong>to the initial requesting application.<\/li><\/ol>\n\n\n\n<h2>API&#8217;s in Nafhaa<\/h2>\n\n\n\n<p>Nafhaa API&#8217;s are divided into 2 parts. <\/p>\n\n\n\n<ul><li>PULL API&#8217;s: These API&#8217;s are used to Pull data from Nafhaa Application<\/li><li>PUSH API&#8217;s: These API&#8217;s are used to Push data to Nafhaa Application.<\/li><\/ul>\n","protected":false},"author":2,"featured_media":0,"parent":32,"menu_order":18,"comment_status":"open","ping_status":"closed","template":"","meta":[],"doc_tag":[],"_links":{"self":[{"href":"https:\/\/help.nafhaa.com\/index.php?rest_route=\/wp\/v2\/docs\/5101"}],"collection":[{"href":"https:\/\/help.nafhaa.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/help.nafhaa.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/help.nafhaa.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/help.nafhaa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5101"}],"version-history":[{"count":2,"href":"https:\/\/help.nafhaa.com\/index.php?rest_route=\/wp\/v2\/docs\/5101\/revisions"}],"predecessor-version":[{"id":5105,"href":"https:\/\/help.nafhaa.com\/index.php?rest_route=\/wp\/v2\/docs\/5101\/revisions\/5105"}],"up":[{"embeddable":true,"href":"https:\/\/help.nafhaa.com\/index.php?rest_route=\/wp\/v2\/docs\/32"}],"next":[{"title":"Common Reports","link":"https:\/\/help.nafhaa.com\/?docs=nafhaa\/common-reports","href":"https:\/\/help.nafhaa.com\/index.php?rest_route=\/wp\/v2\/docs\/5139"}],"prev":[{"title":"Templates","link":"https:\/\/help.nafhaa.com\/?docs=nafhaa\/templates","href":"https:\/\/help.nafhaa.com\/index.php?rest_route=\/wp\/v2\/docs\/3842"}],"wp:attachment":[{"href":"https:\/\/help.nafhaa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5101"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.nafhaa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=5101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}