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.
_______________________________________________________________________________________
Ajax is a popular Web development technology that uses JavaScript For web page interaction.
In Ajax, the XMLHTTPRequest object is used to send requests to the server, and the JavaScript code dynamically changes the current page according to the response.
In most cases, Ajax applications comply with the rest design principles. Every XMLHttpRequest can be regarded as a rest service request, which is sent through get. The returned results are typically in a format supported by the JSON--REST (refer to the previous rest server responses)
In order to make your Ajax application truly restful, according to the standard rest design principles (discussed later), you will find that most of them benefit from good design, even if you don't think your architecture is in line with rest.
The following section provides the sample code issuing HTTP requests in Javascript. However, you should be familiar with Ajax programming experience.