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.
_______________________________________________________________________________________
As a programming method, rest is a lightweight solution that can replace web service and rb5.
Similar to Web Services, rest services are:
- Platform-independent (you do not need to worry about Unix servers, Mac clients, or others)
- Language independence (C # interaction with Java)
- Based on the standard (on top of HTTP), and
- It can still be used in the case of a firewall)
Like web services, rest does not provide built-in security features, encryption, session management, and QoS Assurance. Like web services, security features and encryption mechanisms can be provided over HTTP:
- For security, the user name/password token is usually used
- For encryption, rest can be based on HTTPS (Secure Socket)
- And so on.
However, there is one thing that is not a good rest design-Cookie. The "St" in "rest" has achieved status transfer. In fact, good rest design operations are self-contained (self-contained) and) each request contains all the information (Status) required by the server to complete the request ).