SlideShare a Scribd company logo
3
Most read
4
Most read
17
Most read
Introduction to APIs
VIBHAWA NIRMAL WIJERATHNA
Agenda
What is API ?
Types of API
What is web Service ?
Compare and Contrast API vs Web Services
SOAP Web Service?
REST Web Service?
Compare and Contrast SOAP vs REST
What is API ?
‱ API Stands for Application Programming Interface.
‱ API’s allows two applications to communicate with each other.
‱ It is a contract between the client and server.
‱ Client sends a request through the API and after performing the action the
API will send back a response to the client.
What is API ? Cont..
‱ APIs can be use for;
‱ Communication between services.
‱ Example : BankTransactions through third party apps.
‱ Access inbuilt hardware of a device.
‱ Example : access camera in a mobile.
Application API Assets
Types of Application Programming Interface (APIs)
‱ Private API
‱ Public API
‱ Partner API
Private API
‱ Private APIs are developed by own company to enhance the own products and
services.
‱ They have below characteristics ;
‱ Less Common.
‱ Exposed only to the internal systems.
‱ Used across internal development teams within the company.
Public API
‱ Public APIs are published publicly and that can be used by anyone(any third-party
user).
‱ They have below characteristics ;
‱ Publicly available without any access restriction.
‱ Used to communicate beyond the boundaries of the company.
‱ No need to necessarily have a business relationship with them.
Partner API
‱ Partner APIs are used by specific parties with whom the company agrees to share
data.
‱ They have below characteristics ;
‱ Are exposed to selected business partners.
‱ Used for communication between a company and its business partners.
What is Web Service ?
‱ Used for exchanging data between applications or systems with the
support of protocols and standards via internet.
‱ Main component of a web service is the data which is transferred
between the client and the server, and that is XML.
Web Service Architecture
Client Web ServerInternet
Client request services from web server and server response to client with the web service.
Compare and Contrast API vs Web Services
API Web Service
All APIs are not web services. All web services are APIs.
Responses are formatted using Web API's Media Type
Formatter into XML, JSON, or any other given format.
It supports XML.
Has a light-weight architecture. Does not have light-weight architecture.
Need a SOAP protocol to send or receive data over the
network.
Can be used by a client who understands JSON or XML. Can be used by any client who understands XML.
API can be used any style of communication. Web service uses three styles: REST, SOAP, and XML-RPC for
communication.
It provides support for the HTTP/s protocol: URL
Request/Response Headers, etc.
It provides supports only for the HTTP protocol.
Web Service API ?
‱ There are two major types of web services;
‱ SOAPWeb Services (Simple Object Access Protocol)
‱ REST Web Services (Representational StateTransfer )
What is SOAP?
‱ SOAP stands for Simple Object Access Protocol.
‱ A format for sending and receiving messages.
‱ SOAP is platform independent.
‱ Originally developed by Microsoft.
‱ The best way to communicate between applications is over HTTP.
‱ SOAP provides a way to communicate between applications running on different
operating systems, with different technologies and programming languages.
Building Blocks of SOAP?
‱ A SOAP message is an ordinary XML document which contains;
‱ An Envelope : identifies the XML document as a SOAP message
‱ A Header : contains header information
‱ A Body : contains call and response information
‱ A Fault : contains errors and status information
What is REST?
‱ REST stands for REpresentational StateTransfer.
‱ Relies on a stateless communications protocol most commonly, HTTP.
‱ REST structures data in XML,YAML, or any other format that is
machine-readable.
‱ Usually JSON is the most widely used format.
Basic REST Request?
‱ GET : read or retrieve data
‱ POST : add new data
‱ PUT : update existing data
‱ DELETE : delete data
Compare and Contrast SOAP vs REST
SOAP REST
Is a protocol. Is an architectural style.
SOAP can’t use REST because it is a protocol. REST can use SOAP web services because it is a concept
and can use any protocol like HTTP, SOAP.
Permits only XML. Permits many different data formats including plain text,
HTML, XML, and JSON.
Requires more bandwidth and more resources. Requires less bandwidth and less resources.
Supports both SMTP and HTTP protocols. Requires the use of HTTP only.
SOAP is more reliable than REST. REST is less secure than SOAP.
SOAP is faster than REST. REST is slower than SOAP.
SOAP defines its own security. RESTful web services inherit security measures from the
underlying transport.
Thank You
Vibhawa Nirmal Wijerathna

More Related Content

What's hot (20)

PPTX
REST API Design & Development
Ashok Pundit
 
PPTX
REST & RESTful Web Services
Halil Burak Cetinkaya
 
PPTX
Api types
Sarah Maddox
 
ODP
Introduction to Swagger
Knoldus Inc.
 
PPTX
Web api
Sudhakar Sharma
 
PPTX
Web services
Akshay Ballarpure
 
PDF
Spring MVC Framework
HĂčng Nguyễn Huy
 
PPT
Understanding REST
Nitin Pande
 
PDF
API for Beginners
Gustavo De Vita
 
PPTX
Introduction to Spring Framework
Serhat Can
 
PPTX
Express js
Manav Prasad
 
PPTX
Introduction to microservices
Paulo Gandra de Sousa
 
PPTX
Simple object access protocol(soap )
balamurugan.k Kalibalamurugan
 
PPTX
Backend Programming
Ruwandi Madhunamali
 
PPTX
Restful web services ppt
OECLIB Odisha Electronics Control Library
 
PPTX
introduction about REST API
AmilaSilva13
 
PPTX
Angular PWA
Vinci Rufus
 
PPTX
[Final] ReactJS presentation
æŽȘ éčć‘
 
PPTX
Intro to React
Justin Reock
 
REST API Design & Development
Ashok Pundit
 
REST & RESTful Web Services
Halil Burak Cetinkaya
 
Api types
Sarah Maddox
 
Introduction to Swagger
Knoldus Inc.
 
Web api
Sudhakar Sharma
 
Web services
Akshay Ballarpure
 
Spring MVC Framework
HĂčng Nguyễn Huy
 
Understanding REST
Nitin Pande
 
API for Beginners
Gustavo De Vita
 
Introduction to Spring Framework
Serhat Can
 
Express js
Manav Prasad
 
Introduction to microservices
Paulo Gandra de Sousa
 
Simple object access protocol(soap )
balamurugan.k Kalibalamurugan
 
Backend Programming
Ruwandi Madhunamali
 
Restful web services ppt
OECLIB Odisha Electronics Control Library
 
introduction about REST API
AmilaSilva13
 
Angular PWA
Vinci Rufus
 
[Final] ReactJS presentation
æŽȘ éčć‘
 
Intro to React
Justin Reock
 

Similar to Introduction to APIs (Application Programming Interface) (20)

PDF
API.pdf
KarthigeyanS13
 
PDF
Application.pdf
KarthigeyanS13
 
PDF
What is the difference between an api and web services
Aparna Sharma
 
PDF
Best practices and advantages of REST APIs
Aparna Sharma
 
ODP
Web service Introduction
Madhukar Kumar
 
DOCX
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
Signer.Digital
 
DOCX
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
Signer.Digital
 
PPTX
advanced computer network, about computer
jishukurmi81
 
PDF
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
PrincessMonicaCostel
 
PPTX
Web services soap and rest by mandakini for TechGig
Mandakini Kumari
 
PPTX
Web services
smitha273566
 
PPTX
Overview of java web services
Todd Benson (I.T. SPECIALIST and I.T. SECURITY)
 
PDF
Ebook undisturbed rest-v1 [res_tful apis]
johnkbutcher
 
PPTX
Web Service
Ashwani kumar
 
PPTX
Web services
Mohit Bishnoi
 
PPTX
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Jackson F. de A. Mafra
 
PDF
What is API - Understanding API Simplified
Jubin Aghara
 
PDF
Restful web services by Sreeni Inturi
Sreeni I
 
PPTX
Web Programming
VijayapriyaP1
 
PPSX
Advanced Web Development in PHP - Understanding REST API
Rasan Samarasinghe
 
API.pdf
KarthigeyanS13
 
Application.pdf
KarthigeyanS13
 
What is the difference between an api and web services
Aparna Sharma
 
Best practices and advantages of REST APIs
Aparna Sharma
 
Web service Introduction
Madhukar Kumar
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
Signer.Digital
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
Signer.Digital
 
advanced computer network, about computer
jishukurmi81
 
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
PrincessMonicaCostel
 
Web services soap and rest by mandakini for TechGig
Mandakini Kumari
 
Web services
smitha273566
 
Overview of java web services
Todd Benson (I.T. SPECIALIST and I.T. SECURITY)
 
Ebook undisturbed rest-v1 [res_tful apis]
johnkbutcher
 
Web Service
Ashwani kumar
 
Web services
Mohit Bishnoi
 
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Jackson F. de A. Mafra
 
What is API - Understanding API Simplified
Jubin Aghara
 
Restful web services by Sreeni Inturi
Sreeni I
 
Web Programming
VijayapriyaP1
 
Advanced Web Development in PHP - Understanding REST API
Rasan Samarasinghe
 
Ad

Recently uploaded (20)

PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PPTX
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Ad

Introduction to APIs (Application Programming Interface)

  • 1. Introduction to APIs VIBHAWA NIRMAL WIJERATHNA
  • 2. Agenda What is API ? Types of API What is web Service ? Compare and Contrast API vs Web Services SOAP Web Service? REST Web Service? Compare and Contrast SOAP vs REST
  • 3. What is API ? ‱ API Stands for Application Programming Interface. ‱ API’s allows two applications to communicate with each other. ‱ It is a contract between the client and server. ‱ Client sends a request through the API and after performing the action the API will send back a response to the client.
  • 4. What is API ? Cont.. ‱ APIs can be use for; ‱ Communication between services. ‱ Example : BankTransactions through third party apps. ‱ Access inbuilt hardware of a device. ‱ Example : access camera in a mobile. Application API Assets
  • 5. Types of Application Programming Interface (APIs) ‱ Private API ‱ Public API ‱ Partner API
  • 6. Private API ‱ Private APIs are developed by own company to enhance the own products and services. ‱ They have below characteristics ; ‱ Less Common. ‱ Exposed only to the internal systems. ‱ Used across internal development teams within the company.
  • 7. Public API ‱ Public APIs are published publicly and that can be used by anyone(any third-party user). ‱ They have below characteristics ; ‱ Publicly available without any access restriction. ‱ Used to communicate beyond the boundaries of the company. ‱ No need to necessarily have a business relationship with them.
  • 8. Partner API ‱ Partner APIs are used by specific parties with whom the company agrees to share data. ‱ They have below characteristics ; ‱ Are exposed to selected business partners. ‱ Used for communication between a company and its business partners.
  • 9. What is Web Service ? ‱ Used for exchanging data between applications or systems with the support of protocols and standards via internet. ‱ Main component of a web service is the data which is transferred between the client and the server, and that is XML.
  • 10. Web Service Architecture Client Web ServerInternet Client request services from web server and server response to client with the web service.
  • 11. Compare and Contrast API vs Web Services API Web Service All APIs are not web services. All web services are APIs. Responses are formatted using Web API's Media Type Formatter into XML, JSON, or any other given format. It supports XML. Has a light-weight architecture. Does not have light-weight architecture. Need a SOAP protocol to send or receive data over the network. Can be used by a client who understands JSON or XML. Can be used by any client who understands XML. API can be used any style of communication. Web service uses three styles: REST, SOAP, and XML-RPC for communication. It provides support for the HTTP/s protocol: URL Request/Response Headers, etc. It provides supports only for the HTTP protocol.
  • 12. Web Service API ? ‱ There are two major types of web services; ‱ SOAPWeb Services (Simple Object Access Protocol) ‱ REST Web Services (Representational StateTransfer )
  • 13. What is SOAP? ‱ SOAP stands for Simple Object Access Protocol. ‱ A format for sending and receiving messages. ‱ SOAP is platform independent. ‱ Originally developed by Microsoft. ‱ The best way to communicate between applications is over HTTP. ‱ SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.
  • 14. Building Blocks of SOAP? ‱ A SOAP message is an ordinary XML document which contains; ‱ An Envelope : identifies the XML document as a SOAP message ‱ A Header : contains header information ‱ A Body : contains call and response information ‱ A Fault : contains errors and status information
  • 15. What is REST? ‱ REST stands for REpresentational StateTransfer. ‱ Relies on a stateless communications protocol most commonly, HTTP. ‱ REST structures data in XML,YAML, or any other format that is machine-readable. ‱ Usually JSON is the most widely used format.
  • 16. Basic REST Request? ‱ GET : read or retrieve data ‱ POST : add new data ‱ PUT : update existing data ‱ DELETE : delete data
  • 17. Compare and Contrast SOAP vs REST SOAP REST Is a protocol. Is an architectural style. SOAP can’t use REST because it is a protocol. REST can use SOAP web services because it is a concept and can use any protocol like HTTP, SOAP. Permits only XML. Permits many different data formats including plain text, HTML, XML, and JSON. Requires more bandwidth and more resources. Requires less bandwidth and less resources. Supports both SMTP and HTTP protocols. Requires the use of HTTP only. SOAP is more reliable than REST. REST is less secure than SOAP. SOAP is faster than REST. REST is slower than SOAP. SOAP defines its own security. RESTful web services inherit security measures from the underlying transport.