Four basic principles of REST

Four basic principles of REST:

1. Use HTTP verbs: GET POST PUT DELETE;
2. Stateless connection, the server side should not save too much context state, that is, each request is independent;
3. Set URI for each resource;
4. Via XML JSON Carry out data transfer;
an architecture that implements the above principles can be called a RESTFul architecture.
1. In the Internet environment, the architecture and API of any application can be quickly understood;
2. In the distributed environment, any request can be sent to any server;
3. In the heterogeneous environment, the access and use of any resource are unified

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325053762&siteId=291194637