RESTFUL architecture features

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_43378945/article/details/102725089

1. Each URL represents one kind of a resource;
2. the client uses GET, POST, PUT, verbs DELETE4 represents a mode of operation of the server resource operation; get access to resources used, post for new resources (can also use to update the resource), put to update the resource, dELETE to delete resources;
3. operated resources manifestations resource operation;
manifestations 4. resource is the HTML or XML;
between the client and the server 5 interaction between the request is stateless,

RESTful architecture is a framework for the MVC architectural improvements formed by using a pre-defined interfaces linked to different services. In a RESTful architecture, the browser uses POST, DELETE, PUT and GET requests four kinds of ways to URL resources were specified were CRUD operations. Therefore, RESTful is to achieve management and access to resources by URI, scalable strong, clear structure characteristics.
RESTful architecture servers into the front-end server and back-end servers of two parts, a front end view of the model provided by the server without the user; back-end server provides an interface front-end server. Browser request to view the front end server, the interface model initiated by AJAX request acquiring function included in the view.
The introduction of project development RESTful architecture, facilitates parallel development team. In the RESTful architecture, most of the HTTP request is transferred to the front-end server, reducing the load on the server, so that a rear end view taken failure model can also be presented. But RESTful architecture does not apply to all projects, if the project is small without using a RESTful architecture, the project has become more complicated.

Guess you like

Origin blog.csdn.net/qq_43378945/article/details/102725089