![]() As I said, APIs are everywhere API Testing All the services that are offered online are mostly through API. Maybe now you must have got the idea of how vastly APIs are used today. Through different APIs of different airlines, we can get the response of each and every airline for that specific query at one place like GoIbibo does. But through APIs, this is not so difficult. ![]() For this, you might have to visit different airlines to check their different price. For example, while you are booking a flight, you will require specific flight results according to the source, destination and departure date, and maybe some other variables. APIs help you fetch a particular response according to the particular request. If you are into computer science or IT industry, there is no escape from APIs. We have achieved so much through APIs, it's hard to count. This will help the chef to cook according to your demands.Īn API takes your requests from the device and fetches the response from the server. For example, you order something from the menu and describe explicitly that it should be extra spicy. ![]() The methods and parameters will be discussed in detail later but here in the analogy, you can think of it as the special requests you make according to your taste and liking. He will process your request, cook your desired food and present it back to you as a response. As said above, your server or application is the chef who is in the kitchen. This server will be processing your request and responding back to you. ![]() You make the requests while the waiter works as an API who is an intermediary and takes the request to the appropriate server. How much time and energy is saved? This is exactly what an API does.Īs we visually depict the above analogy using an image, we can see that you are working as a user in the API world. What if the dish is not available? Well, the waiter knows beforehand you made the wrong request, so he will tell you then and there on the table that the food item is not available. This waiter is bilingual and speaks both of your ( chef and you) languages fluently. The waiter will come and take your requests, give them to the chef, and then in response bring back the food. A waiter is what can be seen as an API in the internet world. Also, how can we forget we live in this multilingual world? What if you do not understand the chef's language? We need a waiter here. There will be many customers present in the restaurant which will slow the process of the chef since now he will be listening to the orders instead of preparing them. What if the dish is not available? You will have to go to your seat again and decide something else. There is no waiter present, so you need to see the menu lying on the table and then make a request to the kitchen where the chef will prepare the dish for you. Taking an analogy here, l et say you went to a restaurant. Let's break these terms and explore more about APIs. ![]() Talking in technical terms an API is a set of procedures, functions, and other points of access that an application, an operating system, a library, etc., makes available to programmers in order to allow it to interact with other software. API stands for Application Programming Interface. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |