SlideShare a Scribd company logo
API
API
What is API?
●
API: is a software-to-software interface, not a user
interface.
●
With API, applications talk to each other without any
user knowledge or intervention.
●
Main goal of API is code/program reusable
●
An API resembles Software as a Service (SaaS), since
software developers don’t have to start from scratch
every time they write a program.
●
Instead of building one core application that tries to do
everything, the same application can contract out
certain responsibilities to remote software that does it
better.
What is API?
API WorkFlow
What is RESTful Web Service?
●
RESTful (REpresentational State Transfer) Web
Service: also known as RESTful API, is based
on REST technology which is an web
application that uses HTTP requests to GET,
PUT, POST and DELETE data.
●
REST technology is generally preferred to the
more robust Simple Object Access Protocol
(SOAP) technology because REST leverages
less bandwidth, making it more suitable for
internet usage.
RESTful Web Service..Cont..,
●
With cloud use on the rise, APIs are emerging
to expose web services. REST is a logical
choice for building APIs that allow users to
connect and interact with cloud services.
Types of API
●
Local API: is the original form of API which is
the OS APIs that provide services to application
programs (Front-end/GUI) requesting services
or data from the back-end such as voice service
or data from DB.
●
Program API: is based on RPC (Remote
Procedure Call) technology that making a
remote program execution from another
servers. SOA (Service Oriented Architecture)
APIs are sample of Program API.
Types of API...Cont..,
●
Web API: also known as Web Service, is
application/device communicate to each others
via World Wide Web (HTTP architecture).
●
There are two kinds of Web Service: SOAP
(Simple Object Access Protocol) and RESTful
(REpresentational State Transfer)
Rest API
●
What is SOAP Web Service?
●
SOAP Web Service: describes a standardized
way of integrating Web-based applications
using the XML, SOAP, WSDL and UDDI open
standards over an Internet protocol backbone.
●
XML (EXtensible Markup Language) is used to
tag the data.
●
SOAP (Simple Object Access Protocol) is used
to transfer the data. (XML-based messaging
protocol)
SOAP Web Service...Cont...
●
WSDL (Web Services Description Language) is
used for describing the services available.
(Written in XML)
●
UDDI (Universal Description, Discovery, and
Integration) is used for listing what services are
available (XML-based registry)
●
NOTE: Web services allow different web
applications from different sources to
communicate with each other without time-
consuming custom coding and because all
communication is in XML.
SOAP Web Service...Cont...
●
Web services are not tied to any one operating
system or programming language. For
example, Java can talk with Perl, Windows
applications can talk with UNIX applications.
REST vs SOAP Web Services
REST Web Services:
●
RESTful web services are stateless. You can
test this condition by restarting the server and
checking if interactions survive.
●
For most servers, RESTful web services
provide a good caching infrastructure over an
HTTP GET method. This can improve the
performance if the information the service
returns is not altered frequently and is not
dynamic.
REST vs SOAP Web
Services..Cont..,
●
Service producers and consumers must
understand the context and content being
passed along as there is no standard set of
rules to describe the REST web services
interface.
●
REST is useful for restricted-profile devices,
such as mobile, for which the overhead of
additional parameters are less (e.g., headers).
REST vs SOAP Web
Services..Cont..,
●
REST services are easy to integrate with
existing websites and are exposed with XML so
the HTML pages can consume the same with
ease. There is little need to refactor the existing
site architecture. As such, developers are more
productive because they don't need to rewrite
everything from scratch; instead, they just need
to add on the existing functionality.
●
A REST-based implementation is simple
compared to SOAP.
REST vs SOAP Web
Services..Cont..,
●
REST does not enforce any message format
such as XML or JSON. Whereas, SOAP is XML
based messaging protocol.
●
The Web Services Description Language
(WSDL) describes a common set of rules to
define the messages, bindings, operations and
location of the service. WSDL is akin to a
contract to define the interface that the service
offers.
REST vs SOAP Web
Services..Cont..,
●
SOAP requires less plumbing code than REST
services design (e.g., transactions, security,
coordination, addressing and trust). Most real-
world applications are not simple and support
complex operations, which require
conversational state and contextual information
to be maintained. With the SOAP approach,
developers don't need to write plumbing code
into the application layer.
REST vs SOAP Web
Services..Cont..,
●
SOAP web services, such as JAX-WS, are
useful for asynchronous processing and
invocation.
●
SOAP supports several protocols and
technologies, including WSDL, XSDs and WS-
Addressing.

More Related Content

Similar to Application.pdf

Web services
Web servicesWeb services
Web services
Ankit Jain
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
VijayapriyaP1
 
Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0
Aravindharamanan S
 
Java web services
Java web servicesJava web services
Java web services
kumar gaurav
 
Day1 : web service basics
Day1 :  web service basics Day1 :  web service basics
Day1 : web service basics
Testing World
 
webservices overview
webservices overviewwebservices overview
webservices overviewelliando dias
 
Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface) Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface)
Vibhawa Nirmal
 
Rest web service
Rest web serviceRest web service
Rest web service
Hamid Ghorbani
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptx
ssuser403d87
 
Overview of Rest Service and ASP.NET WEB API
Overview of Rest Service and ASP.NET WEB APIOverview of Rest Service and ASP.NET WEB API
Overview of Rest Service and ASP.NET WEB API
Pankaj Bajaj
 
Web services
Web servicesWeb services
Web services
Mohit Bishnoi
 
An API (Application Programming Interface) is the means by which thi.pdf
An API (Application Programming Interface) is the means by which thi.pdfAn API (Application Programming Interface) is the means by which thi.pdf
An API (Application Programming Interface) is the means by which thi.pdf
arakalamkah11
 
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
 
RESTful API by abubakar
RESTful API by abubakarRESTful API by abubakar
RESTful API by abubakar
KenAndTea
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web services
snegacmr
 
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio
 
Web services
Web servicesWeb services
Web services
Akshay Ballarpure
 
Introduction to Django REST Framework
Introduction to Django REST FrameworkIntroduction to Django REST Framework
Introduction to Django REST Framework
AmitHadole
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
Yisal Khan
 

Similar to Application.pdf (20)

Web services
Web servicesWeb services
Web services
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
 
Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0
 
Java web services
Java web servicesJava web services
Java web services
 
Day1 : web service basics
Day1 :  web service basics Day1 :  web service basics
Day1 : web service basics
 
webservices overview
webservices overviewwebservices overview
webservices overview
 
Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface) Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface)
 
Rest web service
Rest web serviceRest web service
Rest web service
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptx
 
Overview of Rest Service and ASP.NET WEB API
Overview of Rest Service and ASP.NET WEB APIOverview of Rest Service and ASP.NET WEB API
Overview of Rest Service and ASP.NET WEB API
 
Web services
Web servicesWeb services
Web services
 
An API (Application Programming Interface) is the means by which thi.pdf
An API (Application Programming Interface) is the means by which thi.pdfAn API (Application Programming Interface) is the means by which thi.pdf
An API (Application Programming Interface) is the means by which thi.pdf
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni Inturi
 
RESTful API by abubakar
RESTful API by abubakarRESTful API by abubakar
RESTful API by abubakar
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web services
 
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
 
Web services
Web servicesWeb services
Web services
 
Soap Vs Rest
Soap Vs RestSoap Vs Rest
Soap Vs Rest
 
Introduction to Django REST Framework
Introduction to Django REST FrameworkIntroduction to Django REST Framework
Introduction to Django REST Framework
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
 

Recently uploaded

Global Peatlands Map and Hotspot Explanation Atlas
Global Peatlands Map and Hotspot Explanation AtlasGlobal Peatlands Map and Hotspot Explanation Atlas
Global Peatlands Map and Hotspot Explanation Atlas
Global Landscapes Forum (GLF)
 
Silent nights: The essential role of Nocturnal Pollinators - .pptx
Silent nights: The essential role of Nocturnal Pollinators - .pptxSilent nights: The essential role of Nocturnal Pollinators - .pptx
Silent nights: The essential role of Nocturnal Pollinators - .pptx
Archita Das
 
Summary of the Climate and Energy Policy of Australia
Summary of the Climate and Energy Policy of AustraliaSummary of the Climate and Energy Policy of Australia
Summary of the Climate and Energy Policy of Australia
yasmindemoraes1
 
Epcon is One of the World's leading Manufacturing Companies.
Epcon is One of the World's leading Manufacturing Companies.Epcon is One of the World's leading Manufacturing Companies.
Epcon is One of the World's leading Manufacturing Companies.
EpconLP
 
Wildlife-AnIntroduction.pdf so that you know more about our environment
Wildlife-AnIntroduction.pdf so that you know more about our environmentWildlife-AnIntroduction.pdf so that you know more about our environment
Wildlife-AnIntroduction.pdf so that you know more about our environment
amishajha2407
 
Daan Park Hydrangea flower season I like it
Daan Park Hydrangea flower season I like itDaan Park Hydrangea flower season I like it
Daan Park Hydrangea flower season I like it
a0966109726
 
ENVIRONMENT~ Renewable Energy Sources and their future prospects.
ENVIRONMENT~ Renewable Energy Sources and their future prospects.ENVIRONMENT~ Renewable Energy Sources and their future prospects.
ENVIRONMENT~ Renewable Energy Sources and their future prospects.
tiwarimanvi3129
 
AGRICULTURE Hydrophonic FERTILISER PPT.pptx
AGRICULTURE Hydrophonic FERTILISER PPT.pptxAGRICULTURE Hydrophonic FERTILISER PPT.pptx
AGRICULTURE Hydrophonic FERTILISER PPT.pptx
BanitaDsouza
 
Peatlands of Latin America and the Caribbean
Peatlands of Latin America and the CaribbeanPeatlands of Latin America and the Caribbean
Peatlands of Latin America and the Caribbean
Global Landscapes Forum (GLF)
 
Drip Irrigation technology with solar power
Drip Irrigation technology with solar powerDrip Irrigation technology with solar power
Drip Irrigation technology with solar power
anikchanda4
 
Improving the viability of probiotics by encapsulation methods for developmen...
Improving the viability of probiotics by encapsulation methods for developmen...Improving the viability of probiotics by encapsulation methods for developmen...
Improving the viability of probiotics by encapsulation methods for developmen...
Open Access Research Paper
 
How about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shopHow about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shop
laozhuseo02
 
Improving the Management of Peatlands and the Capacities of Stakeholders in I...
Improving the Management of Peatlands and the Capacities of Stakeholders in I...Improving the Management of Peatlands and the Capacities of Stakeholders in I...
Improving the Management of Peatlands and the Capacities of Stakeholders in I...
Global Landscapes Forum (GLF)
 
Promoting Multilateral Cooperation for Sustainable Peatland management
Promoting Multilateral Cooperation for Sustainable Peatland managementPromoting Multilateral Cooperation for Sustainable Peatland management
Promoting Multilateral Cooperation for Sustainable Peatland management
Global Landscapes Forum (GLF)
 
UNDERSTANDING WHAT GREEN WASHING IS!.pdf
UNDERSTANDING WHAT GREEN WASHING IS!.pdfUNDERSTANDING WHAT GREEN WASHING IS!.pdf
UNDERSTANDING WHAT GREEN WASHING IS!.pdf
JulietMogola
 
Enhanced action and stakeholder engagement for sustainable peatland management
Enhanced action and stakeholder engagement for sustainable peatland managementEnhanced action and stakeholder engagement for sustainable peatland management
Enhanced action and stakeholder engagement for sustainable peatland management
Global Landscapes Forum (GLF)
 
DENR-PENRO-Bulacan-Presentation Philippine EIS
DENR-PENRO-Bulacan-Presentation Philippine EISDENR-PENRO-Bulacan-Presentation Philippine EIS
DENR-PENRO-Bulacan-Presentation Philippine EIS
MarlonJayBayag
 
different Modes of Insect Plant Interaction
different Modes of Insect Plant Interactiondifferent Modes of Insect Plant Interaction
different Modes of Insect Plant Interaction
Archita Das
 
Q&A with the Experts: The Food Service Playbook
Q&A with the Experts: The Food Service PlaybookQ&A with the Experts: The Food Service Playbook
Q&A with the Experts: The Food Service Playbook
World Resources Institute (WRI)
 
Peatland Management in Indonesia, Science to Policy and Knowledge Education
Peatland Management in Indonesia, Science to Policy and Knowledge EducationPeatland Management in Indonesia, Science to Policy and Knowledge Education
Peatland Management in Indonesia, Science to Policy and Knowledge Education
Global Landscapes Forum (GLF)
 

Recently uploaded (20)

Global Peatlands Map and Hotspot Explanation Atlas
Global Peatlands Map and Hotspot Explanation AtlasGlobal Peatlands Map and Hotspot Explanation Atlas
Global Peatlands Map and Hotspot Explanation Atlas
 
Silent nights: The essential role of Nocturnal Pollinators - .pptx
Silent nights: The essential role of Nocturnal Pollinators - .pptxSilent nights: The essential role of Nocturnal Pollinators - .pptx
Silent nights: The essential role of Nocturnal Pollinators - .pptx
 
Summary of the Climate and Energy Policy of Australia
Summary of the Climate and Energy Policy of AustraliaSummary of the Climate and Energy Policy of Australia
Summary of the Climate and Energy Policy of Australia
 
Epcon is One of the World's leading Manufacturing Companies.
Epcon is One of the World's leading Manufacturing Companies.Epcon is One of the World's leading Manufacturing Companies.
Epcon is One of the World's leading Manufacturing Companies.
 
Wildlife-AnIntroduction.pdf so that you know more about our environment
Wildlife-AnIntroduction.pdf so that you know more about our environmentWildlife-AnIntroduction.pdf so that you know more about our environment
Wildlife-AnIntroduction.pdf so that you know more about our environment
 
Daan Park Hydrangea flower season I like it
Daan Park Hydrangea flower season I like itDaan Park Hydrangea flower season I like it
Daan Park Hydrangea flower season I like it
 
ENVIRONMENT~ Renewable Energy Sources and their future prospects.
ENVIRONMENT~ Renewable Energy Sources and their future prospects.ENVIRONMENT~ Renewable Energy Sources and their future prospects.
ENVIRONMENT~ Renewable Energy Sources and their future prospects.
 
AGRICULTURE Hydrophonic FERTILISER PPT.pptx
AGRICULTURE Hydrophonic FERTILISER PPT.pptxAGRICULTURE Hydrophonic FERTILISER PPT.pptx
AGRICULTURE Hydrophonic FERTILISER PPT.pptx
 
Peatlands of Latin America and the Caribbean
Peatlands of Latin America and the CaribbeanPeatlands of Latin America and the Caribbean
Peatlands of Latin America and the Caribbean
 
Drip Irrigation technology with solar power
Drip Irrigation technology with solar powerDrip Irrigation technology with solar power
Drip Irrigation technology with solar power
 
Improving the viability of probiotics by encapsulation methods for developmen...
Improving the viability of probiotics by encapsulation methods for developmen...Improving the viability of probiotics by encapsulation methods for developmen...
Improving the viability of probiotics by encapsulation methods for developmen...
 
How about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shopHow about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shop
 
Improving the Management of Peatlands and the Capacities of Stakeholders in I...
Improving the Management of Peatlands and the Capacities of Stakeholders in I...Improving the Management of Peatlands and the Capacities of Stakeholders in I...
Improving the Management of Peatlands and the Capacities of Stakeholders in I...
 
Promoting Multilateral Cooperation for Sustainable Peatland management
Promoting Multilateral Cooperation for Sustainable Peatland managementPromoting Multilateral Cooperation for Sustainable Peatland management
Promoting Multilateral Cooperation for Sustainable Peatland management
 
UNDERSTANDING WHAT GREEN WASHING IS!.pdf
UNDERSTANDING WHAT GREEN WASHING IS!.pdfUNDERSTANDING WHAT GREEN WASHING IS!.pdf
UNDERSTANDING WHAT GREEN WASHING IS!.pdf
 
Enhanced action and stakeholder engagement for sustainable peatland management
Enhanced action and stakeholder engagement for sustainable peatland managementEnhanced action and stakeholder engagement for sustainable peatland management
Enhanced action and stakeholder engagement for sustainable peatland management
 
DENR-PENRO-Bulacan-Presentation Philippine EIS
DENR-PENRO-Bulacan-Presentation Philippine EISDENR-PENRO-Bulacan-Presentation Philippine EIS
DENR-PENRO-Bulacan-Presentation Philippine EIS
 
different Modes of Insect Plant Interaction
different Modes of Insect Plant Interactiondifferent Modes of Insect Plant Interaction
different Modes of Insect Plant Interaction
 
Q&A with the Experts: The Food Service Playbook
Q&A with the Experts: The Food Service PlaybookQ&A with the Experts: The Food Service Playbook
Q&A with the Experts: The Food Service Playbook
 
Peatland Management in Indonesia, Science to Policy and Knowledge Education
Peatland Management in Indonesia, Science to Policy and Knowledge EducationPeatland Management in Indonesia, Science to Policy and Knowledge Education
Peatland Management in Indonesia, Science to Policy and Knowledge Education
 

Application.pdf

  • 2. What is API? ● API: is a software-to-software interface, not a user interface. ● With API, applications talk to each other without any user knowledge or intervention. ● Main goal of API is code/program reusable ● An API resembles Software as a Service (SaaS), since software developers don’t have to start from scratch every time they write a program. ● Instead of building one core application that tries to do everything, the same application can contract out certain responsibilities to remote software that does it better.
  • 5. What is RESTful Web Service? ● RESTful (REpresentational State Transfer) Web Service: also known as RESTful API, is based on REST technology which is an web application that uses HTTP requests to GET, PUT, POST and DELETE data. ● REST technology is generally preferred to the more robust Simple Object Access Protocol (SOAP) technology because REST leverages less bandwidth, making it more suitable for internet usage.
  • 6. RESTful Web Service..Cont.., ● With cloud use on the rise, APIs are emerging to expose web services. REST is a logical choice for building APIs that allow users to connect and interact with cloud services.
  • 7. Types of API ● Local API: is the original form of API which is the OS APIs that provide services to application programs (Front-end/GUI) requesting services or data from the back-end such as voice service or data from DB. ● Program API: is based on RPC (Remote Procedure Call) technology that making a remote program execution from another servers. SOA (Service Oriented Architecture) APIs are sample of Program API.
  • 8. Types of API...Cont.., ● Web API: also known as Web Service, is application/device communicate to each others via World Wide Web (HTTP architecture). ● There are two kinds of Web Service: SOAP (Simple Object Access Protocol) and RESTful (REpresentational State Transfer)
  • 10. ● What is SOAP Web Service? ● SOAP Web Service: describes a standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone. ● XML (EXtensible Markup Language) is used to tag the data. ● SOAP (Simple Object Access Protocol) is used to transfer the data. (XML-based messaging protocol)
  • 11. SOAP Web Service...Cont... ● WSDL (Web Services Description Language) is used for describing the services available. (Written in XML) ● UDDI (Universal Description, Discovery, and Integration) is used for listing what services are available (XML-based registry) ● NOTE: Web services allow different web applications from different sources to communicate with each other without time- consuming custom coding and because all communication is in XML.
  • 12. SOAP Web Service...Cont... ● Web services are not tied to any one operating system or programming language. For example, Java can talk with Perl, Windows applications can talk with UNIX applications.
  • 13. REST vs SOAP Web Services REST Web Services: ● RESTful web services are stateless. You can test this condition by restarting the server and checking if interactions survive. ● For most servers, RESTful web services provide a good caching infrastructure over an HTTP GET method. This can improve the performance if the information the service returns is not altered frequently and is not dynamic.
  • 14. REST vs SOAP Web Services..Cont.., ● Service producers and consumers must understand the context and content being passed along as there is no standard set of rules to describe the REST web services interface. ● REST is useful for restricted-profile devices, such as mobile, for which the overhead of additional parameters are less (e.g., headers).
  • 15. REST vs SOAP Web Services..Cont.., ● REST services are easy to integrate with existing websites and are exposed with XML so the HTML pages can consume the same with ease. There is little need to refactor the existing site architecture. As such, developers are more productive because they don't need to rewrite everything from scratch; instead, they just need to add on the existing functionality. ● A REST-based implementation is simple compared to SOAP.
  • 16. REST vs SOAP Web Services..Cont.., ● REST does not enforce any message format such as XML or JSON. Whereas, SOAP is XML based messaging protocol. ● The Web Services Description Language (WSDL) describes a common set of rules to define the messages, bindings, operations and location of the service. WSDL is akin to a contract to define the interface that the service offers.
  • 17. REST vs SOAP Web Services..Cont.., ● SOAP requires less plumbing code than REST services design (e.g., transactions, security, coordination, addressing and trust). Most real- world applications are not simple and support complex operations, which require conversational state and contextual information to be maintained. With the SOAP approach, developers don't need to write plumbing code into the application layer.
  • 18. REST vs SOAP Web Services..Cont.., ● SOAP web services, such as JAX-WS, are useful for asynchronous processing and invocation. ● SOAP supports several protocols and technologies, including WSDL, XSDs and WS- Addressing.