SlideShare a Scribd company logo
1 of 16
CORDOVA TRAINING
SESSION: 8 – REST API’S
INTRODUCTION
 REST stands for REpresentational State Transfer. REST is the software architectural
style of WWW.
 The advantages of using REST are:
 Performance
 Scalability
 Simplicity
 Visibility
 Portability
 Reliability
INTRODUCTION
 RESTful systems typically communicate over Hypertext Transfer Protocol (HTTP) with
the same HTTP verbs like GET, POST, PUT, DELETE etc.
 REST is not a standard but an architectural style.
 Most of the RESTful implementations make use of common standards such as HTTP,
URI, JSON, and XML.
ARCHITECTURAL CONSTRAINTS
 REST has the following architectural properties:
 Client–Server
 Stateless
 Cacheable
 Layered
 Uniform interface
CLIENT - SERVER
 The client–server model of computing is a distributed application structure that partitions
tasks or workloads between the providers of a resource or service, called servers, and
service requesters, called clients.
 A client requests a server's content or service function.
 A server host runs one or more server programs which share their resources with clients.
CLIENT - SERVER
STATELESS PROTOCOL
 A stateless protocol is a communications protocol that treats each request as an
independent transaction that is unrelated to any previous request.
 Each communication consists of independent pairs of request and response.
 A stateless protocol does not require the server to retain session information or status
about each communications partner for the duration of multiple requests.
 The stateless design simplifies the server design because there is no need to
dynamically allocate storage to deal with conversations in progress.
STATELESS PROTOCOL
 If a client session dies in mid-transaction, no part of the system needs to be responsible
for cleaning up the present state of the server.
 A disadvantage of statelessness is that it may be necessary to include additional
information in every request, and this extra information will need to be interpreted by the
server.
 Eg: Authorization headers
WEB CACHE
 A web cache is an information technology for the temporary storage (caching) of web
documents, such as HTML pages and images, to reduce bandwidth usage, server load,
and perceived lag.
 A web cache system stores copies of documents passing through it; subsequent
requests may be satisfied from the cache if certain conditions are met.
LAYERED SYSTEM
 A layered system is a system in which components are grouped/layered, in a hierarchical
arrangement, such that lower layers provide functions and services that support the
functions and services of higher layers.
UNIFORM INTERFACE
 The uniform interface constraint is fundamental to the design of any REST service.
 The uniform interface simplifies and decouples the architecture, which enables each part
to evolve independently.
 Individual resources are identified in requests, for example using URIs in web-based
REST systems.
 The resources themselves are conceptually separate from the representations that are
returned to the client.
UNIFORM INTERFACE
 For example, the server may send data from its database as HTML, XML or JSON, none
of which are the server's internal representation.
SEMATIC URL
 Semantic URLs, also sometimes referred to as clean URLs, RESTful URLs, user-friendly
URLs, or search engine-friendly URLs, are Uniform Resource Locators (URLs) intended
to improve the usability and accessibility of a website or web service.
 Such URL schemes tend to reflect the conceptual structure of a collection of information
and decouple the user interface from a server's internal representation of information.
SEMATIC URL
 Semantic URLs also do not contain implementation details of the underlying web
application.
 This carries the benefit of reducing the difficulty of changing the implementation of the
resource at a later date.
SEMATIC URL
THANK YOU

More Related Content

What's hot

Implementing an ESB using Mule
Implementing an ESB using MuleImplementing an ESB using Mule
Implementing an ESB using Mule
elliando dias
 
Client-Facing Web E-Trading Platforms
Client-Facing  Web E-Trading Platforms Client-Facing  Web E-Trading Platforms
Client-Facing Web E-Trading Platforms
Nati Shalom
 
Mule ESB Tutorial Part 3
Mule ESB Tutorial Part 3Mule ESB Tutorial Part 3
Mule ESB Tutorial Part 3
Srikanth N
 

What's hot (20)

Technical services Offer
Technical services OfferTechnical services Offer
Technical services Offer
 
Service orchestration and soa
Service orchestration and soaService orchestration and soa
Service orchestration and soa
 
Mule Esb Basics
Mule Esb BasicsMule Esb Basics
Mule Esb Basics
 
Muleflowarchitecture
MuleflowarchitectureMuleflowarchitecture
Muleflowarchitecture
 
Mule message structure
Mule message structureMule message structure
Mule message structure
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule real-world-old
Mule real-world-oldMule real-world-old
Mule real-world-old
 
Arch andmodulesmule
Arch andmodulesmuleArch andmodulesmule
Arch andmodulesmule
 
mulesoft filters
mulesoft filtersmulesoft filters
mulesoft filters
 
Mule ESB Components
Mule ESB Components Mule ESB Components
Mule ESB Components
 
Mule
MuleMule
Mule
 
Mule concepts elements in a mule flow
Mule concepts elements in a mule flowMule concepts elements in a mule flow
Mule concepts elements in a mule flow
 
Introduction to Biz Talk
Introduction to Biz TalkIntroduction to Biz Talk
Introduction to Biz Talk
 
Implementing an ESB using Mule
Implementing an ESB using MuleImplementing an ESB using Mule
Implementing an ESB using Mule
 
Integrating RESTfully
Integrating RESTfullyIntegrating RESTfully
Integrating RESTfully
 
Client-Facing Web E-Trading Platforms
Client-Facing  Web E-Trading Platforms Client-Facing  Web E-Trading Platforms
Client-Facing Web E-Trading Platforms
 
Sap integration by mule esb
Sap integration by mule esbSap integration by mule esb
Sap integration by mule esb
 
Mule ESB Tutorial Part 3
Mule ESB Tutorial Part 3Mule ESB Tutorial Part 3
Mule ESB Tutorial Part 3
 

Similar to Cordova training - Day 8 - REST API's

Enterprise Software Architecture
Enterprise Software ArchitectureEnterprise Software Architecture
Enterprise Software Architecture
rahmed_sct
 

Similar to Cordova training - Day 8 - REST API's (20)

Rest surekha
Rest surekhaRest surekha
Rest surekha
 
REST Introduction.ppt
REST Introduction.pptREST Introduction.ppt
REST Introduction.ppt
 
REST & RESTful APIs: The State of Confusion
REST & RESTful APIs: The State of ConfusionREST & RESTful APIs: The State of Confusion
REST & RESTful APIs: The State of Confusion
 
Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservices
 
Enterprise Software Architecture
Enterprise Software ArchitectureEnterprise Software Architecture
Enterprise Software Architecture
 
REST & SOAP.pptx
REST & SOAP.pptxREST & SOAP.pptx
REST & SOAP.pptx
 
Java web services
Java web servicesJava web services
Java web services
 
Mini-Training: Let's have a rest
Mini-Training: Let's have a restMini-Training: Let's have a rest
Mini-Training: Let's have a rest
 
REST & RESTful Web Services
REST & RESTful Web ServicesREST & RESTful Web Services
REST & RESTful Web Services
 
Introduction to REST - API
Introduction to REST - APIIntroduction to REST - API
Introduction to REST - API
 
Unit 2
Unit 2Unit 2
Unit 2
 
Rest API Automation with REST Assured
Rest API Automation with REST AssuredRest API Automation with REST Assured
Rest API Automation with REST Assured
 
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
 
REST - Representational State Transfer
REST - Representational State TransferREST - Representational State Transfer
REST - Representational State Transfer
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni Inturi
 
WebService-Java
WebService-JavaWebService-Java
WebService-Java
 
Xml.ppt
Xml.pptXml.ppt
Xml.ppt
 
Lab7 paper
Lab7 paperLab7 paper
Lab7 paper
 
IRJET- Rest API for E-Commerce Site
IRJET- Rest API for E-Commerce SiteIRJET- Rest API for E-Commerce Site
IRJET- Rest API for E-Commerce Site
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 

More from Binu Paul (11)

GIT
GITGIT
GIT
 
Cordova training - Day 9 - SQLITE
Cordova training - Day 9 - SQLITECordova training - Day 9 - SQLITE
Cordova training - Day 9 - SQLITE
 
Cordova training - Day 7 - Form data processing
Cordova training - Day 7 - Form data processingCordova training - Day 7 - Form data processing
Cordova training - Day 7 - Form data processing
 
Cordova training : Cordova plugins
Cordova training : Cordova pluginsCordova training : Cordova plugins
Cordova training : Cordova plugins
 
Cordova training : Day 6 - UI development using Framework7
Cordova training : Day 6 - UI development using Framework7Cordova training : Day 6 - UI development using Framework7
Cordova training : Day 6 - UI development using Framework7
 
Cordova training : Day 5 - UI development using Framework7
Cordova training : Day 5 - UI development using Framework7Cordova training : Day 5 - UI development using Framework7
Cordova training : Day 5 - UI development using Framework7
 
Cordova training : Day 4 - Advanced Javascript
Cordova training : Day 4 - Advanced JavascriptCordova training : Day 4 - Advanced Javascript
Cordova training : Day 4 - Advanced Javascript
 
Cordova training : Day 3 - Introduction to Javascript
Cordova training : Day 3 - Introduction to JavascriptCordova training : Day 3 - Introduction to Javascript
Cordova training : Day 3 - Introduction to Javascript
 
Cordova training - Day 3 : Advanced CSS 3
Cordova training - Day 3 : Advanced CSS 3Cordova training - Day 3 : Advanced CSS 3
Cordova training - Day 3 : Advanced CSS 3
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
 
Cordova training : Day 1 : Introduction to Cordova
Cordova training : Day 1 : Introduction to CordovaCordova training : Day 1 : Introduction to Cordova
Cordova training : Day 1 : Introduction to Cordova
 

Recently uploaded

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Recently uploaded (20)

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfAzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 
WSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in Uganda
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 

Cordova training - Day 8 - REST API's

  • 1. CORDOVA TRAINING SESSION: 8 – REST API’S
  • 2. INTRODUCTION  REST stands for REpresentational State Transfer. REST is the software architectural style of WWW.  The advantages of using REST are:  Performance  Scalability  Simplicity  Visibility  Portability  Reliability
  • 3. INTRODUCTION  RESTful systems typically communicate over Hypertext Transfer Protocol (HTTP) with the same HTTP verbs like GET, POST, PUT, DELETE etc.  REST is not a standard but an architectural style.  Most of the RESTful implementations make use of common standards such as HTTP, URI, JSON, and XML.
  • 4. ARCHITECTURAL CONSTRAINTS  REST has the following architectural properties:  Client–Server  Stateless  Cacheable  Layered  Uniform interface
  • 5. CLIENT - SERVER  The client–server model of computing is a distributed application structure that partitions tasks or workloads between the providers of a resource or service, called servers, and service requesters, called clients.  A client requests a server's content or service function.  A server host runs one or more server programs which share their resources with clients.
  • 7. STATELESS PROTOCOL  A stateless protocol is a communications protocol that treats each request as an independent transaction that is unrelated to any previous request.  Each communication consists of independent pairs of request and response.  A stateless protocol does not require the server to retain session information or status about each communications partner for the duration of multiple requests.  The stateless design simplifies the server design because there is no need to dynamically allocate storage to deal with conversations in progress.
  • 8. STATELESS PROTOCOL  If a client session dies in mid-transaction, no part of the system needs to be responsible for cleaning up the present state of the server.  A disadvantage of statelessness is that it may be necessary to include additional information in every request, and this extra information will need to be interpreted by the server.  Eg: Authorization headers
  • 9. WEB CACHE  A web cache is an information technology for the temporary storage (caching) of web documents, such as HTML pages and images, to reduce bandwidth usage, server load, and perceived lag.  A web cache system stores copies of documents passing through it; subsequent requests may be satisfied from the cache if certain conditions are met.
  • 10. LAYERED SYSTEM  A layered system is a system in which components are grouped/layered, in a hierarchical arrangement, such that lower layers provide functions and services that support the functions and services of higher layers.
  • 11. UNIFORM INTERFACE  The uniform interface constraint is fundamental to the design of any REST service.  The uniform interface simplifies and decouples the architecture, which enables each part to evolve independently.  Individual resources are identified in requests, for example using URIs in web-based REST systems.  The resources themselves are conceptually separate from the representations that are returned to the client.
  • 12. UNIFORM INTERFACE  For example, the server may send data from its database as HTML, XML or JSON, none of which are the server's internal representation.
  • 13. SEMATIC URL  Semantic URLs, also sometimes referred to as clean URLs, RESTful URLs, user-friendly URLs, or search engine-friendly URLs, are Uniform Resource Locators (URLs) intended to improve the usability and accessibility of a website or web service.  Such URL schemes tend to reflect the conceptual structure of a collection of information and decouple the user interface from a server's internal representation of information.
  • 14. SEMATIC URL  Semantic URLs also do not contain implementation details of the underlying web application.  This carries the benefit of reducing the difficulty of changing the implementation of the resource at a later date.