REST
REST
• REpresentational State Transfer
• 구상화 상태 전송자?
• ROA(Resource Oriented Architecture) web
service standard
SOAP vs REST
• Service Oriented Architecture
• Resource Oriented Architecture
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>
URI
• Uniform Resource Identifier
• http://www.example.com:80 /users/1
?q=abc#title
• (host + port) + path + parameters
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
RESTful Property
• Addressablilty - simple URI
• Connectedness - connected resource
presentation
• Statelessness - for load balance
• Homogeneous Interface - basic methods
REST Methods
• POST
• GET
• PUT
• DELETE
• PATCH

REST

  • 1.
  • 2.
    REST • REpresentational StateTransfer • 구상화 상태 전송자? • ROA(Resource Oriented Architecture) web service standard
  • 3.
    SOAP vs REST •Service Oriented Architecture • Resource Oriented Architecture
  • 4.
    REST example • TryGET • 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 ResourceIdentifier • http://www.example.com:80 /users/1 ?q=abc#title • (host + port) + path + parameters
  • 6.
    RESTful URI • NormalURI • 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
  • 8.
    REST Methods • POST •GET • PUT • DELETE • PATCH