1. What is Restful?
Essence: It is a software architecture style
Core: Resource-oriented API setting
2. Why use Restful?
Solve the problem: reduce the complexity of development; improve the scalability of the system
3. What is the difference between Restful and other architectures?
soap webserver is a cross-programming language and cross-operating platform remote calling technology. When sending requests and receiving results through the http protocol, they are encapsulated in xml format, and some specific http message headers are added. These specific http message headers and xml content formats are the soap protocol
The difference between the two architectures is : 1. Efficiency 2. Ease of use 3. Security
Efficiency and ease of use:
soap case: Since soap adds a specific http message header, if the business provider ( WeChat) does not provide documentation...no one will use its api
Security:
Restful is suitable for scenarios with high efficiency requirements but low security requirements
The maturity of soap brings convenience to interface design with higher security requirements
4. How to implement an API that conforms to the Restful architecture?
Comply with the 6 main design elements
5. What is the difference between Restful and http?
Restful is a software architecture style
http is an implementation method
The above is the detailed content of What does Restful mean?. For more information, please follow other related articles on the PHP Chinese website!