Now, to understand what we are about to do, we read the Documentation. This function is similar to forking a git repository from Github.įorked public workspace is now in “My workspace”. So, to avoid problems in the public workspace, we fork a copy of the public workspace into our personal workspace (which only we have access to). Now, we should not tamper with the original code unless we are absolutely sure about what we are doing. We enter the public workspace on the platform which is made to be visible to everyone and to learn how to interact with APIs. but the most used format is JSON or JavaScript Object Notation. The Data can be sent in various formats Text, HTML, XML etc. The data payload (which is the data sent by the client to your API), is optional but often supplied with the POST and PUT requests. The Body is that part of the API which contains the data that we want send or receive. The Path is the destination where the request can be heard or executed. The Host is the address of the server, the place where the code lives which you need to connect to.ģ. The Protocol is the scheme of the request, here it is an HTTPS request. The Method parameter specifies which type of action will be performed in our API call, some main actions are. Address/Endpoint (URL – Uniform Resource Locator).The interaction with the API starts with making a REQUEST, which carries the following parameters … Now, let’s dive into the "Technical Part" about APIs… don’t stop, I assure you it’s very simple □ So, to solve this problem, Postman was created which had a minimalistic UI (User Interface) helping developers manage APIs. In earlier days, the complex structure of the command line interface, while implementing API requests, made it difficult to read and manage the code. It's environment makes it a popular Industry standard equipment for companies like PayPal, Uber, Atlassian etc. Postman is a collaborative API development platform that makes it easy for us to create, test and monitor APIs. Let us now understand the role of Postman. So, you see that the process which happens within seconds on our devices, runs a lot of API calls in the background, but thanks to the developers of Instagram, you do not experience the lag in service. Step 4: Instagram displays the photograph to you and your followers (API fetched the photograph from the server) Step 3: You finally publish this photograph (API sends this photograph to the server to store it) Step 2: You modify the photograph by applying filters (API to modify this photograph) Step 1: You select a photograph from your gallery to upload (API required to fetch that photograph) Let me demonstrate how the APIs help us with an example of it's simple implementation on Instagram. Why do we use APIs and not directly access the data from the servers?ĪPIs make the task of developers easier by removing the need to create every service from scratch. The above depiction shows us how in the Software Development World, the client (the person requiring the data), sends a request which is taken by the API to the Server (where the data is stored) and the action is performed accordingly. Similarly, the role of an API is to act as the middleman for the communicator between softwares. The function of the waiter is to communicate to you whether there is a stock of ice-cream or not, if there is, he will bring it for you. Suppose you, the customer, visit your favourite restaurant and request for a bowl of ice-cream for which the waiter acts as a mode of communication between you and the chef. To explain what an API is, we take a simple example. Follow-up Opportunities and Learning ResourcesĪPI stands for Application Programming Interface. ![]() □Let’s find out what is an API, what is it used for, what is Postman and it's role as an API management tool. But what are APIs in the first place and why are they used? Postman has become a popular tool for developers for Creating, Testing and Managing APIs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |