Akthar Farvees
@aktharfarvees
WHAT IS
API, REST API AND
RESTFUL API
SAVE
Akthar Farvees
@aktharfarvees
REST API and RESTFULL API used in the modern state of
client/server architecture in software development.
Table of Content
What is API ?
Benefits of using APIs
What is a RESTfuI API and REST API?
Endpoints REST API and RESTfuI APIs.
Difference between REST API and RESTfuI API.
SAVE
Akthar Farvees
@aktharfarvees
What is API?
API stands for Application Programming Interface . It is a set of
rules, protocols, and tools that allows different software
applications to communicate and interact with each other. An
API specifies how different components of software should
interact, defining the methods, data formats, and protocols
that developers can use to access and utilize the functionality
of a particular software or service. Let's look into an example to
go through with this topic
SAVE
Akthar Farvees
@aktharfarvees
If user wants to book train tickets , web application shows the
departure time, stations like that all the information's.
When we look in this from the developer side , developer wants
to display all the train schedule information in the web
application, then developer use the APIs to get these train
information from the web server where all the train details and
informations are stored.
Then developers can retrieve data from the web server using
tne APIs to display in the web application.
SAVE
Akthar Farvees
@aktharfarvees
Benefits Of Using API
APIs needed to make the connection between application
functions to handle the data from predefined processes.
Ease of integration : APIs can be embedded with any type of
software application, So it can easily integrate with the
applications and functions between different websites.
Reduce software development effort: Using APIs reduce
development efforts, developers can implement APIs of Google
Maps to provide the exact store location to website visitors.
Security: APIs provide a secure communication gateway for
different app components to interact and exchange data.
SAVE
Akthar Farvees
@aktharfarvees
What Is A RESTFUL & REST API?
REST API
REpresentational State Transfer abbreviated to REST. It is an
API that follows a set of rules for an application and services to
communicate with each other
REST APIs work by fielding requests for a resource and
returning all relevant information about the resource,
translated into a format that clients can easily interpret (this
format is determined by the API receiving requests). Clients can
also modify items on the server and even add new items to the
server through a REST API .
SAVE
Akthar Farvees
@aktharfarvees
RESTFULL API
The RESTfuI API obeys the REST architecture constraints and
interacts with RESTfuI web services. The RESTfuI API also
follows the principles of REST API. RESTfuI APIs are more
scalable and have a longer lifespan. The RESTfuI API uses HTTP
requests to access and use data.
SAVE
Akthar Farvees
@aktharfarvees
There four basic HTTP requests a client can
make
GET - To retrieve a resource.
POST - To create a new resource.
PUT - To edit or update an existing resource.
DELETE - To delete a resource.
Client Server
HTTP Header
HTTP Request
HTTP Response
HTTP Header
Content
SAVE
Akthar Farvees
@aktharfarvees
Akthar Farvees
Thank You!
@aktharfarvees
Do you find it helpful?
Thank You!