SlideShare a Scribd company logo
1 of 14
Representational State Transfer
(REST)
Hypertext Transfer Protocol
(HTTP)
 A communications protocol
 Allows retrieving inter-linked text documents (hypertext)
◦ World Wide Web.
 HTTP Verbs
◦ HEAD
◦ GET
◦ POST
◦ PUT
◦ DELETE
◦ TRACE
◦ OPTIONS
◦ CONNECT
Representational State Transfer
(REST)
 A style of software architecture for distributed hypermedia systems
such as the World Wide Web.
 Introduced in the doctoral dissertation of Roy Fielding
◦ One of the principal authors of the HTTP specification.
 A collection of network architecture principles which outline how
resources are defined and addressed
REST and HTTP
 The motivation for REST was to capture the characteristics of the
Web which made the Web successful.
◦ URI Addressable resources
◦ HTTP Protocol
◦ Make a Request – Receive Response – Display Response
 Exploits the use of the HTTP protocol beyond HTTP POST and
HTTP GET
◦ HTTP PUT, HTTP DELETE
REST - not a Standard
 REST is not a standard
◦ JSR 311: JAX-RS: The JavaTM API for RESTful Web Services
 But it uses several standards:
◦ HTTP
◦ URL
◦ XML/HTML/GIF/JPEG/etc (Resource Representations)
◦ text/xml, text/html, image/gif, image/jpeg, etc
(Resource Types, MIME Types)
Main Concepts
Nouns (Resources)
unconstrained
i.e., http://example.com/employees/12345
REST
Representations
constrained
i.e., XML
Verbs
constrained
i.e., GET
Resources
 The key abstraction of information in REST is a resource.
 A resource is a conceptual mapping to a set of entities
◦ Any information that can be named can be a resource:
a document or image, a temporal service (e.g. "today's
weather in Los Angeles"), a collection of other resources,
a non-virtual object (e.g. a person), and so on
 Represented with a global identifier (URI in HTTP)
Verbs
 Represent the actions to be performed on resources
 HTTP GET
 HTTP POST
 HTTP PUT
 HTTP DELETE
HTTP GET
 How clients ask for the information they seek.
 Issuing a GET request transfers the data from the server to the client in
some representation
Representations
 How data is represented or returned to the client for presentation.
 Two main formats:
◦ JavaScript Object Notation (JSON)
◦ XML
 It is common to have multiple representations of the same data
Why is it called
"Representational State
Transfer"?
Client
http://www.boeing.com/aircraft/747
Resource
Fuel requirements
Maintenance schedule
...
The Client references a Web resource using a URL. A representation of the resource is returned (in
this case as an HTML document).
The representation (e.g., Boeing747.html) places the client application in a state. The result of the
client traversing a hyperlink in Boeing747.html is another resource accessed. The new representation
places the client application into yet another state. Thus, the client application changes (transfers) state
with each resource representation --> Representation State Transfer!
Architecture Style
Request
(XML doc)
Response
(JSON doc)
PO
(XML doc)
Response
(TEXT doc)
URL 1
URL 1
URL 1
Request
(XML doc)
Response
(XML doc)
HTTP POST
HTTP DELETE
HTTP Response
HTTP Response
HTTP Response
HTTP GET
Web/ProxyServer
REST Engine
(locate resource
and generate
response)
do
do
do
Real Life Examples
 Google Maps
 Google AJAX Search API
 Yahoo Search API
 Amazon WebServices
REST and the Web
 The Web is an example of a REST system!
 All of those Web services that you have been using all these many
years - book ordering services, search services, online dictionary
services, etc - are REST-based Web services.
 Alas, you have been using REST, building REST services and you
didn't even know it.
we provide online and classroom training
for REST API
For More Details
www.asit.amcsquare.com
Wise Machines India Pvt Ltd
#360, Sri Sai Padma Arcade,
Varthur Main Road,
Ramagondanahalli,
Whitefiled ,Bangalore – 560066.
We also having Branches in Hyderabad & Chennai

More Related Content

What's hot

HTTP Definition and Basics.
HTTP Definition and Basics.HTTP Definition and Basics.
HTTP Definition and Basics.
Halah Salih
 
HyperText Transfer Protocol
HyperText Transfer ProtocolHyperText Transfer Protocol
HyperText Transfer Protocol
ponduse
 
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
rahul kundu
 

What's hot (20)

Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)
 
HTTP Definition and Basics.
HTTP Definition and Basics.HTTP Definition and Basics.
HTTP Definition and Basics.
 
Http basics by-joshi_29_4_15-ppt
Http basics by-joshi_29_4_15-pptHttp basics by-joshi_29_4_15-ppt
Http basics by-joshi_29_4_15-ppt
 
HTTP request and response
HTTP request and responseHTTP request and response
HTTP request and response
 
Http and its Applications
Http and its ApplicationsHttp and its Applications
Http and its Applications
 
HTTP & WWW
HTTP & WWWHTTP & WWW
HTTP & WWW
 
HTTP Basics
HTTP BasicsHTTP Basics
HTTP Basics
 
Web
WebWeb
Web
 
Understanding the Web through HTTP
Understanding the Web through HTTPUnderstanding the Web through HTTP
Understanding the Web through HTTP
 
HTTP
HTTPHTTP
HTTP
 
What's up with HTTP?
What's up with HTTP?What's up with HTTP?
What's up with HTTP?
 
web connectivity in IoT
web connectivity in IoTweb connectivity in IoT
web connectivity in IoT
 
HTTP Protocol Basic
HTTP Protocol BasicHTTP Protocol Basic
HTTP Protocol Basic
 
What is SPDY
What is SPDYWhat is SPDY
What is SPDY
 
HyperText Transfer Protocol
HyperText Transfer ProtocolHyperText Transfer Protocol
HyperText Transfer Protocol
 
Http Introduction
Http IntroductionHttp Introduction
Http Introduction
 
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
 
What is http?
What is http?What is http?
What is http?
 
Http VS. Https
Http VS. HttpsHttp VS. Https
Http VS. Https
 
Lecture15
Lecture15Lecture15
Lecture15
 

Similar to Learn REST API at ASIT

Rest with Java EE 6 , Security , Backbone.js
Rest with Java EE 6 , Security , Backbone.jsRest with Java EE 6 , Security , Backbone.js
Rest with Java EE 6 , Security , Backbone.js
Carol McDonald
 
RESTful services
RESTful servicesRESTful services
RESTful services
gouthamrv
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web Architecture
Chamnap Chhorn
 

Similar to Learn REST API at ASIT (20)

emilio.ppt
emilio.pptemilio.ppt
emilio.ppt
 
emilio.ppt
emilio.pptemilio.ppt
emilio.ppt
 
REST - Representational State Transfer
REST - Representational State TransferREST - Representational State Transfer
REST - Representational State Transfer
 
Restful web services with java
Restful web services with javaRestful web services with java
Restful web services with java
 
RESTful web services using java and spring
RESTful web services using java and springRESTful web services using java and spring
RESTful web services using java and spring
 
Restful Fundamentals
Restful FundamentalsRestful Fundamentals
Restful Fundamentals
 
Restful Fundamentals
Restful FundamentalsRestful Fundamentals
Restful Fundamentals
 
ReST
ReSTReST
ReST
 
Efficient Spring Data REST Development
Efficient Spring Data REST DevelopmentEfficient Spring Data REST Development
Efficient Spring Data REST Development
 
Creating Restful Web Services with restish
Creating Restful Web Services with restishCreating Restful Web Services with restish
Creating Restful Web Services with restish
 
Rest
Rest Rest
Rest
 
Rest with Java EE 6 , Security , Backbone.js
Rest with Java EE 6 , Security , Backbone.jsRest with Java EE 6 , Security , Backbone.js
Rest with Java EE 6 , Security , Backbone.js
 
Rest
RestRest
Rest
 
REST Basics
REST BasicsREST Basics
REST Basics
 
API Design, A Quick Guide to REST, SOAP, gRPC, and GraphQL, By Vahid Rahimian
API Design, A Quick Guide to REST, SOAP, gRPC, and GraphQL, By Vahid RahimianAPI Design, A Quick Guide to REST, SOAP, gRPC, and GraphQL, By Vahid Rahimian
API Design, A Quick Guide to REST, SOAP, gRPC, and GraphQL, By Vahid Rahimian
 
Restful web services
Restful web servicesRestful web services
Restful web services
 
RESTful services
RESTful servicesRESTful services
RESTful services
 
ReSTful API Final
ReSTful API FinalReSTful API Final
ReSTful API Final
 
HTTP 완벽가이드 1장.
HTTP 완벽가이드 1장.HTTP 완벽가이드 1장.
HTTP 완벽가이드 1장.
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web Architecture
 

More from ASIT

Asit Never Cheats Unemployes
Asit Never Cheats UnemployesAsit Never Cheats Unemployes
Asit Never Cheats Unemployes
ASIT
 
Asit amc never cheats students
Asit amc never cheats studentsAsit amc never cheats students
Asit amc never cheats students
ASIT
 

More from ASIT (20)

Asit education student review
Asit education student reviewAsit education student review
Asit education student review
 
ASIT EDUCATION STUDENT REVIEWS
ASIT EDUCATION STUDENT REVIEWSASIT EDUCATION STUDENT REVIEWS
ASIT EDUCATION STUDENT REVIEWS
 
Asit Education
Asit EducationAsit Education
Asit Education
 
Asit Education Student Reviews
Asit Education Student ReviewsAsit Education Student Reviews
Asit Education Student Reviews
 
Asit education Student review
Asit education Student reviewAsit education Student review
Asit education Student review
 
ASIT EDUCATION REVIEW
ASIT EDUCATION REVIEWASIT EDUCATION REVIEW
ASIT EDUCATION REVIEW
 
Asit Never Cheats Unemployes
Asit Never Cheats UnemployesAsit Never Cheats Unemployes
Asit Never Cheats Unemployes
 
Latest News on Amc Square Asit
Latest News on Amc Square AsitLatest News on Amc Square Asit
Latest News on Amc Square Asit
 
Asit amc never cheats students
Asit amc never cheats studentsAsit amc never cheats students
Asit amc never cheats students
 
News on AMC Square ASIT
News on AMC Square ASITNews on AMC Square ASIT
News on AMC Square ASIT
 
News on Asit Amc
News on Asit AmcNews on Asit Amc
News on Asit Amc
 
Time Management
Time ManagementTime Management
Time Management
 
learn Ruby at ASIT
learn Ruby at ASITlearn Ruby at ASIT
learn Ruby at ASIT
 
introduction to Mongodb
introduction to Mongodbintroduction to Mongodb
introduction to Mongodb
 
introduction to hadoop
introduction to hadoopintroduction to hadoop
introduction to hadoop
 
ASIT REVIEWS
ASIT REVIEWSASIT REVIEWS
ASIT REVIEWS
 
ASIT REVIEWS
ASIT REVIEWSASIT REVIEWS
ASIT REVIEWS
 
Learn C LANGUAGE at ASIT
Learn C LANGUAGE at ASITLearn C LANGUAGE at ASIT
Learn C LANGUAGE at ASIT
 
Learn Advanced JAVA at ASIT
Learn Advanced JAVA at ASITLearn Advanced JAVA at ASIT
Learn Advanced JAVA at ASIT
 
Learn WCF at ASIT
Learn  WCF at ASITLearn  WCF at ASIT
Learn WCF at ASIT
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

Learn REST API at ASIT

  • 2. Hypertext Transfer Protocol (HTTP)  A communications protocol  Allows retrieving inter-linked text documents (hypertext) ◦ World Wide Web.  HTTP Verbs ◦ HEAD ◦ GET ◦ POST ◦ PUT ◦ DELETE ◦ TRACE ◦ OPTIONS ◦ CONNECT
  • 3. Representational State Transfer (REST)  A style of software architecture for distributed hypermedia systems such as the World Wide Web.  Introduced in the doctoral dissertation of Roy Fielding ◦ One of the principal authors of the HTTP specification.  A collection of network architecture principles which outline how resources are defined and addressed
  • 4. REST and HTTP  The motivation for REST was to capture the characteristics of the Web which made the Web successful. ◦ URI Addressable resources ◦ HTTP Protocol ◦ Make a Request – Receive Response – Display Response  Exploits the use of the HTTP protocol beyond HTTP POST and HTTP GET ◦ HTTP PUT, HTTP DELETE
  • 5. REST - not a Standard  REST is not a standard ◦ JSR 311: JAX-RS: The JavaTM API for RESTful Web Services  But it uses several standards: ◦ HTTP ◦ URL ◦ XML/HTML/GIF/JPEG/etc (Resource Representations) ◦ text/xml, text/html, image/gif, image/jpeg, etc (Resource Types, MIME Types)
  • 6. Main Concepts Nouns (Resources) unconstrained i.e., http://example.com/employees/12345 REST Representations constrained i.e., XML Verbs constrained i.e., GET
  • 7. Resources  The key abstraction of information in REST is a resource.  A resource is a conceptual mapping to a set of entities ◦ Any information that can be named can be a resource: a document or image, a temporal service (e.g. "today's weather in Los Angeles"), a collection of other resources, a non-virtual object (e.g. a person), and so on  Represented with a global identifier (URI in HTTP)
  • 8. Verbs  Represent the actions to be performed on resources  HTTP GET  HTTP POST  HTTP PUT  HTTP DELETE HTTP GET  How clients ask for the information they seek.  Issuing a GET request transfers the data from the server to the client in some representation
  • 9. Representations  How data is represented or returned to the client for presentation.  Two main formats: ◦ JavaScript Object Notation (JSON) ◦ XML  It is common to have multiple representations of the same data
  • 10. Why is it called "Representational State Transfer"? Client http://www.boeing.com/aircraft/747 Resource Fuel requirements Maintenance schedule ... The Client references a Web resource using a URL. A representation of the resource is returned (in this case as an HTML document). The representation (e.g., Boeing747.html) places the client application in a state. The result of the client traversing a hyperlink in Boeing747.html is another resource accessed. The new representation places the client application into yet another state. Thus, the client application changes (transfers) state with each resource representation --> Representation State Transfer!
  • 11. Architecture Style Request (XML doc) Response (JSON doc) PO (XML doc) Response (TEXT doc) URL 1 URL 1 URL 1 Request (XML doc) Response (XML doc) HTTP POST HTTP DELETE HTTP Response HTTP Response HTTP Response HTTP GET Web/ProxyServer REST Engine (locate resource and generate response) do do do
  • 12. Real Life Examples  Google Maps  Google AJAX Search API  Yahoo Search API  Amazon WebServices
  • 13. REST and the Web  The Web is an example of a REST system!  All of those Web services that you have been using all these many years - book ordering services, search services, online dictionary services, etc - are REST-based Web services.  Alas, you have been using REST, building REST services and you didn't even know it.
  • 14. we provide online and classroom training for REST API For More Details www.asit.amcsquare.com Wise Machines India Pvt Ltd #360, Sri Sai Padma Arcade, Varthur Main Road, Ramagondanahalli, Whitefiled ,Bangalore – 560066. We also having Branches in Hyderabad & Chennai