SlideShare a Scribd company logo
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.
Most read
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
Most read
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.
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)

Api presentation
Api presentationApi presentation
Api presentation
Tiago Cardoso
 
REST & RESTful Web Services
REST & RESTful Web ServicesREST & RESTful Web Services
REST & RESTful Web Services
Halil Burak Cetinkaya
 
Api types
Api typesApi types
Api types
Sarah Maddox
 
An Introduction to APIs
An Introduction to APIs An Introduction to APIs
An Introduction to APIs
Srinath Perera
 
API
APIAPI
API
Masters Academy
 
What is an API Gateway?
What is an API Gateway?What is an API Gateway?
What is an API Gateway?
LunchBadger
 
Api gateway
Api gatewayApi gateway
Api gateway
enyert
 
Service-Oriented Architecture (SOA)
Service-Oriented Architecture (SOA)Service-Oriented Architecture (SOA)
Service-Oriented Architecture (SOA)
WSO2
 
Full stack web development
Full stack web developmentFull stack web development
Full stack web development
Crampete
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
Knoldus Inc.
 
Soap vs rest
Soap vs restSoap vs rest
Soap vs rest
Antonio Severien
 
REST-API introduction for developers
REST-API introduction for developersREST-API introduction for developers
REST-API introduction for developers
Patrick Savalle
 
API Presentation
API PresentationAPI Presentation
API Presentation
nityakulkarni
 
Introduction to Aneka, Aneka Model is explained
Introduction to Aneka, Aneka Model is explainedIntroduction to Aneka, Aneka Model is explained
Introduction to Aneka, Aneka Model is explained
Dr Neelesh Jain
 
Full stack development
Full stack developmentFull stack development
Full stack development
Arnav Gupta
 
REST API Design & Development
REST API Design & DevelopmentREST API Design & Development
REST API Design & Development
Ashok Pundit
 
Postman. From simple API test to end to end scenario
Postman. From simple API test to end to end scenarioPostman. From simple API test to end to end scenario
Postman. From simple API test to end to end scenario
HYS Enterprise
 
Firebase PPT
Firebase PPTFirebase PPT
Firebase PPT
JATIN GUPTA
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 
Introduction to MERN Stack
Introduction to MERN StackIntroduction to MERN Stack
Introduction to MERN Stack
Surya937648
 
An Introduction to APIs
An Introduction to APIs An Introduction to APIs
An Introduction to APIs
Srinath Perera
 
What is an API Gateway?
What is an API Gateway?What is an API Gateway?
What is an API Gateway?
LunchBadger
 
Api gateway
Api gatewayApi gateway
Api gateway
enyert
 
Service-Oriented Architecture (SOA)
Service-Oriented Architecture (SOA)Service-Oriented Architecture (SOA)
Service-Oriented Architecture (SOA)
WSO2
 
Full stack web development
Full stack web developmentFull stack web development
Full stack web development
Crampete
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
Knoldus Inc.
 
REST-API introduction for developers
REST-API introduction for developersREST-API introduction for developers
REST-API introduction for developers
Patrick Savalle
 
Introduction to Aneka, Aneka Model is explained
Introduction to Aneka, Aneka Model is explainedIntroduction to Aneka, Aneka Model is explained
Introduction to Aneka, Aneka Model is explained
Dr Neelesh Jain
 
Full stack development
Full stack developmentFull stack development
Full stack development
Arnav Gupta
 
REST API Design & Development
REST API Design & DevelopmentREST API Design & Development
REST API Design & Development
Ashok Pundit
 
Postman. From simple API test to end to end scenario
Postman. From simple API test to end to end scenarioPostman. From simple API test to end to end scenario
Postman. From simple API test to end to end scenario
HYS Enterprise
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 
Introduction to MERN Stack
Introduction to MERN StackIntroduction to MERN Stack
Introduction to MERN Stack
Surya937648
 

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

API.pdf
API.pdfAPI.pdf
API.pdf
KarthigeyanS13
 
Application.pdf
Application.pdfApplication.pdf
Application.pdf
KarthigeyanS13
 
What is the difference between an api and web services
What is the difference between an api and web servicesWhat is the difference between an api and web services
What is the difference between an api and web services
Aparna Sharma
 
Best practices and advantages of REST APIs
Best practices and advantages of REST APIsBest practices and advantages of REST APIs
Best practices and advantages of REST APIs
Aparna Sharma
 
Web service Introduction
Web service IntroductionWeb service Introduction
Web service Introduction
Madhukar Kumar
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docxSOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
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
SOAP vs REST_ Which Web Service Protocol is Right for Your NeedsSOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
Signer.Digital
 
advanced computer network, about computer
advanced computer network, about computeradvanced computer network, about computer
advanced computer network, about computer
jishukurmi81
 
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdfwsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
PrincessMonicaCostel
 
Web services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGigWeb services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGig
Mandakini Kumari
 
Web services
Web servicesWeb services
Web services
smitha273566
 
Overview of java web services
Overview of java web servicesOverview of java web services
Overview of java web services
Todd Benson (I.T. SPECIALIST and I.T. SECURITY)
 
Ebook undisturbed rest-v1 [res_tful apis]
Ebook undisturbed rest-v1 [res_tful apis]Ebook undisturbed rest-v1 [res_tful apis]
Ebook undisturbed rest-v1 [res_tful apis]
johnkbutcher
 
Web Service
Web ServiceWeb Service
Web Service
Ashwani kumar
 
Web services
Web servicesWeb services
Web services
Mohit Bishnoi
 
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Jackson F. de A. Mafra
 
What is API - Understanding API Simplified
What is API - Understanding API SimplifiedWhat is API - Understanding API Simplified
What is API - Understanding API Simplified
Jubin Aghara
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni Inturi
Sreeni I
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
VijayapriyaP1
 
Advanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST APIAdvanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST API
Rasan Samarasinghe
 
What is the difference between an api and web services
What is the difference between an api and web servicesWhat is the difference between an api and web services
What is the difference between an api and web services
Aparna Sharma
 
Best practices and advantages of REST APIs
Best practices and advantages of REST APIsBest practices and advantages of REST APIs
Best practices and advantages of REST APIs
Aparna Sharma
 
Web service Introduction
Web service IntroductionWeb service Introduction
Web service Introduction
Madhukar Kumar
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docxSOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
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
SOAP vs REST_ Which Web Service Protocol is Right for Your NeedsSOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
Signer.Digital
 
advanced computer network, about computer
advanced computer network, about computeradvanced computer network, about computer
advanced computer network, about computer
jishukurmi81
 
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdfwsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
PrincessMonicaCostel
 
Web services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGigWeb services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGig
Mandakini Kumari
 
Ebook undisturbed rest-v1 [res_tful apis]
Ebook undisturbed rest-v1 [res_tful apis]Ebook undisturbed rest-v1 [res_tful apis]
Ebook undisturbed rest-v1 [res_tful apis]
johnkbutcher
 
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Jackson F. de A. Mafra
 
What is API - Understanding API Simplified
What is API - Understanding API SimplifiedWhat is API - Understanding API Simplified
What is API - Understanding API Simplified
Jubin Aghara
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni Inturi
Sreeni I
 
Advanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST APIAdvanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding REST API
Rasan Samarasinghe
 
Ad

Recently uploaded (20)

DevOps for AI: running LLMs in production with Kubernetes and KubeFlow
DevOps for AI: running LLMs in production with Kubernetes and KubeFlowDevOps for AI: running LLMs in production with Kubernetes and KubeFlow
DevOps for AI: running LLMs in production with Kubernetes and KubeFlow
Aarno Aukia
 
Software Engineering Process, Notation & Tools Introduction - Part 4
Software Engineering Process, Notation & Tools Introduction - Part 4Software Engineering Process, Notation & Tools Introduction - Part 4
Software Engineering Process, Notation & Tools Introduction - Part 4
Gaurav Sharma
 
From Chaos to Clarity - Designing (AI-Ready) APIs with APIOps Cycles
From Chaos to Clarity - Designing (AI-Ready) APIs with APIOps CyclesFrom Chaos to Clarity - Designing (AI-Ready) APIs with APIOps Cycles
From Chaos to Clarity - Designing (AI-Ready) APIs with APIOps Cycles
Marjukka Niinioja
 
Providing Better Biodiversity Through Better Data
Providing Better Biodiversity Through Better DataProviding Better Biodiversity Through Better Data
Providing Better Biodiversity Through Better Data
Safe Software
 
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Alluxio, Inc.
 
Essentials of Resource Planning in a Downturn
Essentials of Resource Planning in a DownturnEssentials of Resource Planning in a Downturn
Essentials of Resource Planning in a Downturn
OnePlan Solutions
 
The Future of Open Source Reporting Best Alternatives to Jaspersoft.pdf
The Future of Open Source Reporting Best Alternatives to Jaspersoft.pdfThe Future of Open Source Reporting Best Alternatives to Jaspersoft.pdf
The Future of Open Source Reporting Best Alternatives to Jaspersoft.pdf
Varsha Nayak
 
Artificial Intelligence Applications Across Industries
Artificial Intelligence Applications Across IndustriesArtificial Intelligence Applications Across Industries
Artificial Intelligence Applications Across Industries
SandeepKS52
 
How Insurance Policy Management Software Streamlines Operations
How Insurance Policy Management Software Streamlines OperationsHow Insurance Policy Management Software Streamlines Operations
How Insurance Policy Management Software Streamlines Operations
Insurance Tech Services
 
Top 11 Fleet Management Software Providers in 2025 (2).pdf
Top 11 Fleet Management Software Providers in 2025 (2).pdfTop 11 Fleet Management Software Providers in 2025 (2).pdf
Top 11 Fleet Management Software Providers in 2025 (2).pdf
Trackobit
 
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
WSO2
 
AI and Deep Learning with NVIDIA Technologies
AI and Deep Learning with NVIDIA TechnologiesAI and Deep Learning with NVIDIA Technologies
AI and Deep Learning with NVIDIA Technologies
SandeepKS52
 
Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)
VICTOR MAESTRE RAMIREZ
 
How the US Navy Approaches DevSecOps with Raise 2.0
How the US Navy Approaches DevSecOps with Raise 2.0How the US Navy Approaches DevSecOps with Raise 2.0
How the US Navy Approaches DevSecOps with Raise 2.0
Anchore
 
OpenTelemetry 101 Cloud Native Barcelona
OpenTelemetry 101 Cloud Native BarcelonaOpenTelemetry 101 Cloud Native Barcelona
OpenTelemetry 101 Cloud Native Barcelona
Imma Valls Bernaus
 
Top 5 Task Management Software to Boost Productivity in 2025
Top 5 Task Management Software to Boost Productivity in 2025Top 5 Task Management Software to Boost Productivity in 2025
Top 5 Task Management Software to Boost Productivity in 2025
Orangescrum
 
Integrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FMEIntegrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FME
Safe Software
 
Marketo & Dynamics can be Most Excellent to Each Other – The Sequel
Marketo & Dynamics can be Most Excellent to Each Other – The SequelMarketo & Dynamics can be Most Excellent to Each Other – The Sequel
Marketo & Dynamics can be Most Excellent to Each Other – The Sequel
BradBedford3
 
Software Testing & it’s types (DevOps)
Software  Testing & it’s  types (DevOps)Software  Testing & it’s  types (DevOps)
Software Testing & it’s types (DevOps)
S Pranav (Deepu)
 
Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...
Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...
Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...
Natan Silnitsky
 
DevOps for AI: running LLMs in production with Kubernetes and KubeFlow
DevOps for AI: running LLMs in production with Kubernetes and KubeFlowDevOps for AI: running LLMs in production with Kubernetes and KubeFlow
DevOps for AI: running LLMs in production with Kubernetes and KubeFlow
Aarno Aukia
 
Software Engineering Process, Notation & Tools Introduction - Part 4
Software Engineering Process, Notation & Tools Introduction - Part 4Software Engineering Process, Notation & Tools Introduction - Part 4
Software Engineering Process, Notation & Tools Introduction - Part 4
Gaurav Sharma
 
From Chaos to Clarity - Designing (AI-Ready) APIs with APIOps Cycles
From Chaos to Clarity - Designing (AI-Ready) APIs with APIOps CyclesFrom Chaos to Clarity - Designing (AI-Ready) APIs with APIOps Cycles
From Chaos to Clarity - Designing (AI-Ready) APIs with APIOps Cycles
Marjukka Niinioja
 
Providing Better Biodiversity Through Better Data
Providing Better Biodiversity Through Better DataProviding Better Biodiversity Through Better Data
Providing Better Biodiversity Through Better Data
Safe Software
 
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Alluxio, Inc.
 
Essentials of Resource Planning in a Downturn
Essentials of Resource Planning in a DownturnEssentials of Resource Planning in a Downturn
Essentials of Resource Planning in a Downturn
OnePlan Solutions
 
The Future of Open Source Reporting Best Alternatives to Jaspersoft.pdf
The Future of Open Source Reporting Best Alternatives to Jaspersoft.pdfThe Future of Open Source Reporting Best Alternatives to Jaspersoft.pdf
The Future of Open Source Reporting Best Alternatives to Jaspersoft.pdf
Varsha Nayak
 
Artificial Intelligence Applications Across Industries
Artificial Intelligence Applications Across IndustriesArtificial Intelligence Applications Across Industries
Artificial Intelligence Applications Across Industries
SandeepKS52
 
How Insurance Policy Management Software Streamlines Operations
How Insurance Policy Management Software Streamlines OperationsHow Insurance Policy Management Software Streamlines Operations
How Insurance Policy Management Software Streamlines Operations
Insurance Tech Services
 
Top 11 Fleet Management Software Providers in 2025 (2).pdf
Top 11 Fleet Management Software Providers in 2025 (2).pdfTop 11 Fleet Management Software Providers in 2025 (2).pdf
Top 11 Fleet Management Software Providers in 2025 (2).pdf
Trackobit
 
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
WSO2
 
AI and Deep Learning with NVIDIA Technologies
AI and Deep Learning with NVIDIA TechnologiesAI and Deep Learning with NVIDIA Technologies
AI and Deep Learning with NVIDIA Technologies
SandeepKS52
 
Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)
VICTOR MAESTRE RAMIREZ
 
How the US Navy Approaches DevSecOps with Raise 2.0
How the US Navy Approaches DevSecOps with Raise 2.0How the US Navy Approaches DevSecOps with Raise 2.0
How the US Navy Approaches DevSecOps with Raise 2.0
Anchore
 
OpenTelemetry 101 Cloud Native Barcelona
OpenTelemetry 101 Cloud Native BarcelonaOpenTelemetry 101 Cloud Native Barcelona
OpenTelemetry 101 Cloud Native Barcelona
Imma Valls Bernaus
 
Top 5 Task Management Software to Boost Productivity in 2025
Top 5 Task Management Software to Boost Productivity in 2025Top 5 Task Management Software to Boost Productivity in 2025
Top 5 Task Management Software to Boost Productivity in 2025
Orangescrum
 
Integrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FMEIntegrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FME
Safe Software
 
Marketo & Dynamics can be Most Excellent to Each Other – The Sequel
Marketo & Dynamics can be Most Excellent to Each Other – The SequelMarketo & Dynamics can be Most Excellent to Each Other – The Sequel
Marketo & Dynamics can be Most Excellent to Each Other – The Sequel
BradBedford3
 
Software Testing & it’s types (DevOps)
Software  Testing & it’s  types (DevOps)Software  Testing & it’s  types (DevOps)
Software Testing & it’s types (DevOps)
S Pranav (Deepu)
 
Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...
Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...
Async-ronizing Success at Wix - Patterns for Seamless Microservices - Devoxx ...
Natan Silnitsky
 
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.