WHY RESTFULDEVELOPMENTRepresentational State Transfer.
Web services!Web Services can convert your applications intoWeb-applications.1. SOAP(Simple Object Access Protocol) /XML-RPC => communication2. REST => communication + standardisation
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
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