0% found this document useful (0 votes)
2 views

what is API_

The document explains the concepts of APIs, REST APIs, and RESTful APIs in the context of client/server architecture. An API serves as an intermediary for applications to communicate, while REST APIs follow specific rules for resource requests and responses. RESTful APIs adhere to REST principles, offering scalability and longevity, and utilize standard HTTP methods for data manipulation.

Uploaded by

Rida Irfan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

what is API_

The document explains the concepts of APIs, REST APIs, and RESTful APIs in the context of client/server architecture. An API serves as an intermediary for applications to communicate, while REST APIs follow specific rules for resource requests and responses. RESTful APIs adhere to REST principles, offering scalability and longevity, and utilize standard HTTP methods for data manipulation.

Uploaded by

Rida Irfan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Whats is

API, REST API


& RESTFUL API

SWIP LEFT
Muhammad Mohsin FOR MORE
API

REST API and RESTful 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 RESTful API and REST API?
Endpoints REST API and RESTful APIs.
Difference between REST API and RESTful API.

SWIP LEFT
Muhammad Mohsin FOR MORE
WHAT IS API?

Application Programme Interface abbreviated as API


which is a software intermediary that allows two
applications to talk to each other. Let's look into an
example to go through with this topic,

SWIP LEFT
Muhammad Mohsin FOR MORE
If user wants to book train tickets, web application
shows the departure time, stations like that all the
informations.

When we look in this from the developer side,


developer wants to display all the train schedule
informations in the web application, then developer
use the APIs to get these train informations from
the web server where all the train details and
informations are stored.

Then developers can retrieve data from the web


server using the APIs to display in the web
application.

SWIP LEFT
Muhammad Mohsin FOR MORE
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.
SWIP LEFT
Muhammad Mohsin FOR MORE
What Is A RESTFUL API And 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.

SWIP LEFT
Muhammad Mohsin FOR MORE
RESTFul API

Get / Post/
Put/ Delet

JSON / XML
CLIENT API DATABASE

The RESTful API obeys the REST architecture


constraints and interacts with RESTful web services.
The RESTful API also follows the principles of REST API.
RESTful APIs are more scalable and have a longer
lifespan. The RESTful API uses HTTP requests to
access and use data.

SWIP LEFT
Muhammad Mohsin FOR MORE
HTTP Request
Browser

HTTP Respons
Server

There four basic HTTP requests a


client can make are:
GET -To retrieve a resource.
POST- To create a new resource.
PUT-To edit or update an existing resource.
DELETE- To delete a resource.

SWIP LEFT
Muhammad Mohsin FOR MORE
Follow
Me For More Content
Muhammad Mohsin

You might also like