What Is An API?: Application Programming Interface (API) Is A Software Interface That Allows Two
What Is An API?: Application Programming Interface (API) Is A Software Interface That Allows Two
Let see how API works using simple daily life example. Imagine that you went to a
restaurant to take lunch or dinner. The waiter comes to you gives you a menu card,
and you will provide personalize it order like you want a veg sandwich but without
onion.
After some time, you will get your order from the waiter. However, it is not that
simple as it looks as there is some process that happens in between.
Here, the waiter plays an important part as you will neither go to the kitchen to
collect your order nor will you tell the kitchen staff what you want all this done by the
waiter.
API also does the same by taking your request, and just like the waiter tell the
system what you want and give a response back to you.
Features of API
Here are some important features of API:
1.Server-side:
Server-side web API is a programmatic interface that consist of one or more publicly
exposed endpoints to a defined request–response message system. It is typically
expressed in JSON or XML.
2.Client-side:
A client-side web API is a programmatic interface helps to extend functionality within
a web browser or other HTTP client.