Original address: http://rest.elkstein.org/
Learn rest: a tutorial
A fast-training courseRest-
RePresentationalSTateTRansfer, a new approach to systems architecture and a lightweight alternative to Web Services
Rest-transition of expressive state-quick learning tutorial, a new system architecture method that can replace the lightweight Web service protocol.
_______________________________________________________________________________________
Rest refersRePresentationalSTateTRansfer (sometimes "rest") indicates a transfer of State. It requires stateless, client-server, and cache-based communication protocols-in fact, HTTP is used.
Rest is designed for network applicationsArchitecture Style. The concept is that inter-machine connections do not adopt complicated mechanisms such as CORBA, RPC, or soap, but adopt simple HTTP.
- In many aspects, the World Wide Web (WWW, HTTP-based) can be considered as a rest-based architecture.
Restful applications use HTTP requests to post data (create and/or update), read data (for example, query), and delete data. In this way, rest uses HTTP for CRUD (create/read/update/delete) operations.
Rest is a lightweight alternative to RPC (Remote Procedure CILS, remote method call), Web Service (SOAP, WSDL, etc.) and other mechanisms. Later, we will describe the simplicity of rest.
- Although rest is simple, rest functions are comprehensive. Anything that web services can do can be done in a restful architecture.
Rest is not a "standard ". For example, W3C is not expected to propose rest. However, there is a ready-made rest programming framework, and it is very simple to use rest. Perl, Java, and C # all have corresponding standard libraries.