Introduction to REST Web Services
- Dr. Kanda Runapongsa Saikaew, Computer Engineering, Khon Kaen University
1 2/14/2009
1
- Asst. Prof. Dr. Kanda Runapongsa Saikaew
(krunapon@kku.ac.th) Department of Computer Engineering Khon Kaen University
Introduction to REST Web Services
Agenda
What is REST? REST Web Services Characteristics Principle of REST Web Services
Design
Semantic of HTTP/1.1 Operations Assets and Drawbacks Security REST vs. SOAP
2
What is REST?
REST is a term proposed by Roy
Fielding in his Ph.D. dissertation
REST is to describe an archit
itecture ecture styl yle of networked systems
REST is an acronym standing for
Representational State Transfer
3
Why Representational State Transfer? (1/2)
The Web is comprised of resources A resource is any item of interest
http://gear.kku.ac.th/~krunapon
A representation of the resource is
returned
The representation places the client
application in a state
4
Why Representational State Transfer? (2/2)
The result of the client traversing a
hyperlink results in another resource is accessed
The new representation places the
client application into yet another state
The client application changes
(transfers) state with each resource representation Representational State Transfer!
5
Roy Fielding‟s Explanation
Representational State Transfer is
intended to evoke an image of how a well- designed Web application behaves: a network of web pages (a virtual state machine), where the user progresses through an application by selecting links (state transitions), resulting in the next page (representing the next state of the application) being transferred to the user and rendered for their use.”
6