What is API and ReST API? A simple explanation of API with examples in easy words.

Md. Nasir Uddin Shoyas
2 min readJan 27, 2024

--

What is API

API = Application programming interface

API is a system, that connects web applications or software with data or features of another platform.
In an easy words, in which system we can get data and show it in our application, that is API. [ex: Weather API]

For example,
Suppose, you have a survey company. This company has a lot of data in its database. You can see that, you have some links for data getting, deleting, creating, and updating.

Like these links:

API Links

You want to give access to the public without authentication for some survey data from your company’s database. So that, you create a link for that survey data.

Now, Which person needs that data to his web application then he can use the created link. This is API.

What isReST API?

ReST API is another type of API.
ReST API — Representational State Transfer Application Programming Interface

REST confirms how will work an API.

Suppose, your web application login system uses a third-party login system. You are using login with Google by Google authentication system.
In this system, your web application has no authentication code and there is no user creation code.

ReST API — Login with Google

Here A user has to create a Google account [ex: Gmail account] and using this account he can log in to your web application.
What is happening in this system?
Here, at login time your web application verifies the information of the user with the help of Google. If you need details information about the user you can also get them.
This is the ReST API.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Md. Nasir Uddin Shoyas
Md. Nasir Uddin Shoyas

Written by Md. Nasir Uddin Shoyas

A junior-level Full Stack Web developer, interested in expanding my knowledge on developing web applications and collaborating with others

No responses yet