| This paper is committed to the implementation of a distributed e-commerce website based on the RESTful API style.The purpose of its implementation is to avoid such problems as once the API is deployed,it becomes difficult to update the system in the later stage,and so on,becoming a secure e-commerce website with lower development cost and stronger system scalability.To achieve a set of general e-commerce platform architecture that is decoupled,flexible and easy to update and maintain.Traditional Internet Web services generally use SOAP protocol,SOAP request XML.At present,the.net Framework can well implement encapsulation,but it is not convenient for non-.net language calls.This can be inconvenient because the Web page that invokes the service has to write a separate test program to debug and test the service before development is complete.In contrast,REST services are remarkably flexible.It can be invoked by both server-side object-oriented languages and client-side scripting languages.It's also easy to test with a browser and the Fiddler tool.This system USES REST architectural style,the late interface to choose RESTful style for analysis and design,to achieve the separation of dynamic and static.The four basic methods of the HTTP protocol(GET,PUT,POST,DELETE)are used to perform a series of operations on a resource.The system is implemented using the Spring Boot framework provided by Pivotal team,Spring Data JPA and a high-performance open source RPC framework developed by Apache Dubbo from Alibaba Group.Achieve the following innovations:1.Use RESTful architecture to enhance the scalability of system interaction,improve the universality of interfaces,independent deployment of components,reduce interaction latency,enhance security,and fundamentally simplify Web development.2.Make the system portable,modifiable and extensible by using RESTful API. |