More Related Content
More from Jongmyoung Kim (20)
REST
- 3. SOAP vs REST
• Service Oriented Architecture
• Resource Oriented Architecture
- 4. REST example
• Try GET
• GET /hello HTTP/1.1
• Host: remotty.com
• Accept: text/plain
• Returen
• <ArrayMember
• xmlns=”http://schemas.datacontract.org/2004/07/wcf“
• xmlns:i=http://www.w3.org/2001/XMLSchema-instance>
• <member>
• <name>HOONS</name>
• <birth>1983</birth>
• </member>
• </ArrayMember>
- 5. URI
• Uniform Resource Identifier
• http://www.example.com:80 /users/1
?q=abc#title
• (host + port) + path + parameters
- 6. RESTful URI
• Normal URI
• http://www.iamcorean.net/finduser.jsp?user=mk&age=32
• RESTful URL
• http://www.remotty.com/sports/soccer
• http://www.remotty.com/sports/soccer/players
• http://www.remotty.com/sports/soccer/players/13/skills
- 7. RESTful Property
• Addressablilty - simple URI
• Connectedness - connected resource
presentation
• Statelessness - for load balance
• Homogeneous Interface - basic methods