{"id":2060,"date":"2022-06-29T21:08:08","date_gmt":"2022-06-30T00:08:08","guid":{"rendered":"https:\/\/felipeelia.com.br\/?p=2060"},"modified":"2022-08-27T19:09:44","modified_gmt":"2022-08-27T22:09:44","slug":"what-is-an-api","status":"publish","type":"post","link":"https:\/\/felipeelia.dev\/what-is-an-api\/","title":{"rendered":"What is an API?"},"content":{"rendered":"\n

Do you know what is an API? Why is it important to use your favorite framework’s APIs? Have you already heard about interfaces and black boxes? In this post, we will talk about all these topics with examples.<\/p>\n\n\n\n

I was going to write about the reasons why you should use WordPress’s APIs but I had to go back to so many concepts that we have to start talking about what is an API. This post is for both junior and senior developers.<\/strong> And yes, we are going to talk about concepts<\/em> but stay there, these are some important ones.<\/p>\n\n\n\n

\n

API is the acronym for Application Programming Interface<\/strong>. But what does that exactly mean?!<\/p>\n<\/blockquote>\n\n\n\n

\"MacGyver<\/a><\/figure>\n\n\n\n

“Application” and “programming” are the easy parts. It is the “Interface” that we need to understand better.<\/p>\n\n\n\n

What is an Interface<\/em>?<\/h2>\n\n\n\n

An Interface is nothing more than the outside layer, the part that connects with the exterior<\/strong>, keeping the interior safe.<\/p>\n\n\n\n

We deal with this concept every day and if that wasn’t possible we would freak out. Imagine if you had to know all the ins and outs of everything surrounding you! Some interface examples:<\/p>\n\n\n\n