PRESENTED
BY:
jishu kurmi
API
Implementati
on over
network
TABLE OF
CONTENTS
0
1
WHAT IS
AN API?
How do APIs
Work?
03 Advantages and
Disadvantages of
APIs
02
04 Types of
APIs
05 Web service
API
WHAT IS AN
API?
APIs are all around us. Every
time we use facebook, send an
instagram message or check
the weather we're using an API
API or Application
Programming Interface that
allows two applications to talk
to each other
How do APIs
Work?
Think of a client-server architecture where the client
sends the request via a medium to the server and
receives the response through the same medium. An
API acts as a communication medium between two
programs or systems for functioning.
The client is the user (who sends the request), the
medium is
the API, and the server is the backend (where the
request is accepted and a response is provided)
Exampl
e
you can think of an API like a
waiter in a restaurant who listens
to your order request, goes to the
chef, takes the food items ordered
and gets back to you with the
order
Advantages of
APIs
Efficiency: API produces efficient, quicker,
and more reliable results .
Flexible delivery of services: API provides
fast and flexible delivery of services
according to developers’ requirements.
Integration: It allows the movement of
data between various sites and thus
enhances the integrated user experience.
Disadvantages of
APIs
Cost: Developing and implementing API is
costly at times and requires high
maintenance.
Security issues : Using API adds another
layer of surface which is then prone to
attacks, and hence the security risk
problem is common in APIs.
Types of
APIs
Pub Lic
Partner
Private
It is also known as open APIs that
are published for general use,
anyone can request data from any
number of companies that use it.
Open APIs are a critical component
for mobile apps, as well as
providing easy integration to major
services for many websites. An
example of public API that’s been
widely adopted would be Google’s
Maps APIs.
Public APIs
A private, or
closed,
API is
typically used by a
software
vendor within its own
infrastructure.
Private APIs
When two different companies
want to share data, they might
do so through a partner API.
This model allows businesses
and developers to connect with
another business in a way that
wouldn’t otherwise be possible.
Partner APIs
Web service
API
There are two major
types of web service
•SOAP
•REST
What is
SOAP
1. SOAP stands for (Simple
Object Access Protocol)
2. Transports data in
standard XML format.
3. Works over HTTP, HTTPS,
SMTP, XMPP
4. Highly structured/typed
What is
REST
1. REST stands for
(Representational State
Transfer)
2. It works with GET, POST,
PUT, DELETE
3. Works over HTTP and
HTTPS
4. Less structured -> less
bulky data
CONCLUSIO
N
APIs play a vital role in the digital
world, acting as bridges that
enable smooth communication
between different software
applications.
THANK
YOU

advanced computer network, about computer

  • 1.
  • 2.
    TABLE OF CONTENTS 0 1 WHAT IS ANAPI? How do APIs Work? 03 Advantages and Disadvantages of APIs 02 04 Types of APIs 05 Web service API
  • 3.
    WHAT IS AN API? APIsare all around us. Every time we use facebook, send an instagram message or check the weather we're using an API API or Application Programming Interface that allows two applications to talk to each other
  • 4.
    How do APIs Work? Thinkof a client-server architecture where the client sends the request via a medium to the server and receives the response through the same medium. An API acts as a communication medium between two programs or systems for functioning. The client is the user (who sends the request), the medium is the API, and the server is the backend (where the request is accepted and a response is provided)
  • 5.
    Exampl e you can thinkof an API like a waiter in a restaurant who listens to your order request, goes to the chef, takes the food items ordered and gets back to you with the order
  • 6.
    Advantages of APIs Efficiency: APIproduces efficient, quicker, and more reliable results . Flexible delivery of services: API provides fast and flexible delivery of services according to developers’ requirements. Integration: It allows the movement of data between various sites and thus enhances the integrated user experience.
  • 7.
    Disadvantages of APIs Cost: Developingand implementing API is costly at times and requires high maintenance. Security issues : Using API adds another layer of surface which is then prone to attacks, and hence the security risk problem is common in APIs.
  • 8.
  • 9.
    It is alsoknown as open APIs that are published for general use, anyone can request data from any number of companies that use it. Open APIs are a critical component for mobile apps, as well as providing easy integration to major services for many websites. An example of public API that’s been widely adopted would be Google’s Maps APIs. Public APIs
  • 10.
    A private, or closed, APIis typically used by a software vendor within its own infrastructure. Private APIs
  • 11.
    When two differentcompanies want to share data, they might do so through a partner API. This model allows businesses and developers to connect with another business in a way that wouldn’t otherwise be possible. Partner APIs
  • 12.
    Web service API There aretwo major types of web service •SOAP •REST
  • 13.
    What is SOAP 1. SOAPstands for (Simple Object Access Protocol) 2. Transports data in standard XML format. 3. Works over HTTP, HTTPS, SMTP, XMPP 4. Highly structured/typed
  • 14.
    What is REST 1. RESTstands for (Representational State Transfer) 2. It works with GET, POST, PUT, DELETE 3. Works over HTTP and HTTPS 4. Less structured -> less bulky data
  • 15.
    CONCLUSIO N APIs play avital role in the digital world, acting as bridges that enable smooth communication between different software applications.
  • 16.