top of page

API(application programming interface)


An Api is a connection between computers or computer programs. According to the layman's terms:

API is a Messenger between user and web-server. Let's understand this with a very famous Non programming example: Say ,you visit a restaurant, the waiter presents you with the menu card. You decide what you want to eat. It could be pizza🍕, pasta🍝 or fries🍟. The waiter takes down your order and then share it with the chefs.Once your food is ready, he delivers the meal right to you .


Here in the above diagram

You is the 'user'

Waiter is the 'API'

Kitchen is the 'Web-server'



API functionality;


Establishes a connection between computer system and enables data accessibility. Allows monitoring users and their activity. Hide complexity by eliminating the "How' factor.

An API for a website is code that allows two software programs to Communicate with each other.


What do they look like 🤔 API's often use plain text;

1:) Commonly this is JSON or XML. 2:) JSON is far more common.

*.Often they returns data directly from the database or some backend logic .

*. In this case we returns a database record (employees) and related records (iteams that belong to the employee) How to find API *.API's exist in a range of web or mobile apps. Keep an eye out for specifically on this following given things👇

1:)

A webpage which also has a mobile app,


2:)

A Web page with a lot of complex frontend activity,


3:)

A webpage that takes a longer time to load,

4:)

A Webapp with developer documentation. ** Enumerating API

Very important for API test ,


-Enumething API's allows you to sure you know everything within an API. How endpoints are constructed to find more resources,

.If /users/1/edit exists does

/orders/1/edit exists?

Types of API


1:)

SOAP (Simple object access protocol)

- It is less commonly used nowadays,


- usually It uses XML (Extensive Markup Language),


- it has a header and a body,


Here is the diagram of SOAP API




2;)

Restful API (representational state transfer )


-uses JSON format

- most common or used api

- has a defined structure in requests.


Here is the diagram of Restful API,




3;)

GraphQl ( query language) API


- newcomer on the scene

-uses a custom query language

-a single endpoint powers all the api.


Here is the diagram of GraphQl API




If you have any questions or concerns regarding this ,you can contact me on this given link;



Thank you !! 💞🇳🇵

 
 
 

Comments


Post: Blog2_Post

Do it

Butwal, Nepal

Subscribe Form

Thanks for submitting!

  • Instagram
  • Twitter
  • Blogger
  • LinkedIn

Created by @Maniesh Neupane 

bottom of page