Automated Creation of Navigable REST Services Based on REST Chart
Li Li, Tony Tang, and Wu Chou
Shannon IT Lab, Huawei, Bridgewater, New Jersey, U.S.A.
Abstract—As REST architectural style gains popularity in various areas, there is an acute need for a REST toolkit that can automate the process of generating service implementations from the service descriptions. Despite that we can generate SOAP service implementations from WSDL files, there is a key distinction between REST services and WS-* services: the former is navigable by hypertext whereas the later is not. Conventional REST toolkits tie the REST API navigability with service actions, such that the navigability can only be achieved at the expense of additional data models and programs. To address this problem, this paper proposes Navigation-First Design to make a REST API navigable before implementing any service actions. A Java REST toolkit has been developed to realize the benefits of this approach through automated generation of JAX-RS compliant Java resource and message classes based on the Hierarchical REST Chart, a Petri-Net based service design framework for REST API. The toolkit can transform REST Chart XML files into a navigable REST API prototype, build and deploy it without the developer writing one line of code. The preliminary experiments show that the approach is feasible and promising.
Index Terms—REST API, REST Chart, JAX-RS, Petri-Net, navigation-first design, code generation
Cite: Li Li, Tony Tang, and Wu Chou, "Automated Creation of Navigable REST Services Based on REST Chart," Journal of Advanced Management Science, Vol. 4, No. 5, pp. 385-392, September 2016. doi: 10.12720/joams.4.5.385-392
Index Terms—REST API, REST Chart, JAX-RS, Petri-Net, navigation-first design, code generation
Cite: Li Li, Tony Tang, and Wu Chou, "Automated Creation of Navigable REST Services Based on REST Chart," Journal of Advanced Management Science, Vol. 4, No. 5, pp. 385-392, September 2016. doi: 10.12720/joams.4.5.385-392