Why Restful

0 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
0
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Why Restful

  1. 1. WHY RESTFULDEVELOPMENTRepresentational State Transfer.
  2. 2. Web services!Web Services can convert your applications intoWeb-applications.1. SOAP(Simple Object Access Protocol) /XML-RPC => communication2. REST => communication + standardisation
  3. 3. What is REST1. Everything is a resource2. REST-style architectures conventionally consist ofclients and servers.3. Clients initiate requests to servers; servers processrequests and return appropriate responses. Requestsand responses are built around the transfer ofrepresentations of resources.4. A resource can be essentially any coherent andmeaningful concept that may be addressed
  4. 4. Action URL HTTP MethodHowever, the HTTP protocol defines eight methods, GET, POST, PUT,DELETE, HEAD, TRACE, OPTIONS, and CONNECT. REST is concerned withthe first four of these methods, GET, POST, PUT, and DELETE. These are themethods that a RESTful web application will use to manipulate resources.● GET maps to show -> get /teams/:id● PUT maps to update -> put /teams/:id● DELETE maps to destroy -> delete /teams/:id● POST is a bit of an exception, since the resource is notyet existent thus it maps to the base /teams
  5. 5. The 3 tiered REST architecture
  6. 6. ThanksEmail: dotnand@gmail.com

×