2
Most read
3
Most read
4
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

PPTX
What is an API?
PPTX
An Introduction To REST API
PPTX
REST API
PDF
Api presentation
PPTX
Understanding REST APIs in 5 Simple Steps
PDF
What is REST API? REST API Concepts and Examples | Edureka
PPT
Introduction to the Web API
What is an API?
An Introduction To REST API
REST API
Api presentation
Understanding REST APIs in 5 Simple Steps
What is REST API? REST API Concepts and Examples | Edureka
Introduction to the Web API

What's hot (20)

PPTX
REST API Design & Development
PPTX
REST & RESTful Web Services
PPTX
PDF
Introduction to API
PPTX
Api testing
PPT
Postman.ppt
PPTX
REST-API introduction for developers
PDF
Web technology
PPTX
PPSX
Rest api standards and best practices
PPT
Introduction to .NET Framework
PPT
Introduction to MongoDB
PPTX
Introduction to ASP.NET
PPTX
API Testing for everyone.pptx
PPT
Understanding REST
PDF
What is API - Understanding API Simplified
PPT
PPTX
Postman. From simple API test to end to end scenario
PPT
Graphql presentation
PDF
REST API and CRUD
REST API Design & Development
REST & RESTful Web Services
Introduction to API
Api testing
Postman.ppt
REST-API introduction for developers
Web technology
Rest api standards and best practices
Introduction to .NET Framework
Introduction to MongoDB
Introduction to ASP.NET
API Testing for everyone.pptx
Understanding REST
What is API - Understanding API Simplified
Postman. From simple API test to end to end scenario
Graphql presentation
REST API and CRUD
Ad

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

PDF
Best practices and advantages of REST APIs
PPTX
unit -4 spring web services like SOA Arch
PPTX
Apitesting.pptx
PDF
What is the difference between an api and web services
PPTX
Web services
PPTX
INTERNET PROGRAMMING WEB SERVICES.pptx
PPTX
Web Programming
ODP
Web service Introduction
PDF
Rest web service
PPTX
Overview of Rest Service and ASP.NET WEB API
PPTX
Mini-Training: Let's have a rest
PDF
APIs Design - Creation - Management.pdf
PDF
Api Penetration Testing and web app pentesting
PPTX
APIs enabling IoT
PPTX
Phalcon 2 High Performance APIs - DevWeekPOA 2015
DOCX
Salesforce Integration
PPTX
Web-services-MD.pptx for web site designing
PDF
Web services and Applications in Web Technology.pdf
PDF
Modern REST API design principles and rules.pdf
Best practices and advantages of REST APIs
unit -4 spring web services like SOA Arch
Apitesting.pptx
What is the difference between an api and web services
Web services
INTERNET PROGRAMMING WEB SERVICES.pptx
Web Programming
Web service Introduction
Rest web service
Overview of Rest Service and ASP.NET WEB API
Mini-Training: Let's have a rest
APIs Design - Creation - Management.pdf
Api Penetration Testing and web app pentesting
APIs enabling IoT
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Salesforce Integration
Web-services-MD.pptx for web site designing
Web services and Applications in Web Technology.pdf
Modern REST API design principles and rules.pdf
Ad

Recently uploaded (20)

PPTX
Computer Software - Technology and Livelihood Education
PDF
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
PDF
CCleaner 6.39.11548 Crack 2025 License Key
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PDF
Salesforce Agentforce AI Implementation.pdf
PPTX
GSA Content Generator Crack (2025 Latest)
PDF
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
PPTX
Computer Software and OS of computer science of grade 11.pptx
PPTX
Weekly report ppt - harsh dattuprasad patel.pptx
PDF
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
PDF
DNT Brochure 2025 – ISV Solutions @ D365
PDF
Microsoft Office 365 Crack Download Free
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
Cybersecurity: Protecting the Digital World
PDF
Visual explanation of Dijkstra's Algorithm using Python
PDF
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PDF
MCP Security Tutorial - Beginner to Advanced
PPTX
"Secure File Sharing Solutions on AWS".pptx
PDF
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
Computer Software - Technology and Livelihood Education
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
CCleaner 6.39.11548 Crack 2025 License Key
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Salesforce Agentforce AI Implementation.pdf
GSA Content Generator Crack (2025 Latest)
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
Computer Software and OS of computer science of grade 11.pptx
Weekly report ppt - harsh dattuprasad patel.pptx
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
DNT Brochure 2025 – ISV Solutions @ D365
Microsoft Office 365 Crack Download Free
Why Generative AI is the Future of Content, Code & Creativity?
Cybersecurity: Protecting the Digital World
Visual explanation of Dijkstra's Algorithm using Python
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
Oracle Fusion HCM Cloud Demo for Beginners
MCP Security Tutorial - Beginner to Advanced
"Secure File Sharing Solutions on AWS".pptx
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...

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.