Professional Documents
Culture Documents
Programming
Interface(API)
Presented by:
Sadaf Zahid
Maria Bano
Muhammad Sohaib Zafar
Hanan Iqbal
Submitted to:
Sir Naveed Ahmed
What is API
APIs are mechanisms that enable two software components to communicate with
each other using a set of definitions and protocols. For example, the weather
bureau’s software system contains daily weather data. The weather app on your
phone “talks” to this system via APIs and shows you daily weather updates on your
phone.
How an API works?
• A client application initiates an API call to
retrieve information—also known as a request.
This request is processed from an application to
the web server via the API’s Uniform Resource
Identifier (URI) and includes a request verb,
headers, and sometimes, a request body.
• After receiving a valid request, the API makes a
call to the external program or web server.
• The server sends a response to the API with the
requested information.
• The API transfers the data to the initial
requesting application.
•
APIs enable integration so that APIs create an added layer of APIs offer flexibility, offer
these platforms and apps can protection between your data new services to their existing
seamlessly communicate with and a server. Developers can market, and, ultimately,
further strengthen API security
one another and can automate access new markets that can
by using tokens, signatures, and
workflows and improve generate massive returns and
Transport Layer Security (TLS)
workplace collaboration. drive digital transformation.
encryption; by implementing
What is API calls
w w w . u n ti t l e d a d r e s s . c o m
Application programming interfaces (APIs) are a way for one program to interact with
another. API calls are the medium by which they interact. An API call, or API request,
is a message sent to a server asking an API to provide a service or information.
Where does API calls go?
API calls travel from a client to an API endpoint. API endpoints are
the places that an API calls go to — most often, a web application
and a server. A mobile client, for example, generates an API call
that goes to the API endpoint, a server. The server receives the API
call, processes it, executes the request, and sends a response.
Types of APIs
Local APIs Web APIs Program APIs
In this types of API, the A Web API also called as Web Services is It makes a remote program
programmers get the local an extensively used API over the web and appears to be local by making use
middleware services. TAPI can be easily accessed using the HTTP of RPC’s (Remote Procedural
(Telephony Application protocols. A Web API is an open source Calls). SOAP is a well-known
Programming Interface), .NET are interface and can be used by a large example of this type of API.
common examples of Local API’s.. number of clients through their phones,
tablets. or PC’s.
Representational state transfer (REST)
• Flexible delivery of services: API provides • Security issues: Using API adds another
fast and flexible delivery of services according layer of surface which is then prone to
to developers requirements. attacks, and hence the security risk problem
• Automation: As API makes use of robotic knowledge and the learning curve can fairly
computers rather than humans, it produces steep when understanding how to extend