Creative Commons Attribution 3.0 Unported license
The architectural pattern of micro-services is being increasingly adopted by developers, facilitating the maintenance and scalability of the systems' code. The adoption and consumption of these micro-services are often seen on the front-end code of the Web applications. Nevertheless, this adoption obliges web designers/developers to know where to look for those web services, to read their documentation and to write the request/response code as well to control the corresponding UI rendering. This whole process is time-consuming and error-prone. This article introduces SeCoGen as an interactive code generator for Web service parsing and consumption. The generator benefits from an HTTP request template, a query normalizer and dynamic UI templates. In order, to validate the generator feasibility and usefulness, a REST API to search for countries is used.
@InProceedings{queiros:OASIcs.SLATE.2019.23,
author = {Queir\'{o}s, Ricardo},
title = {{SeCoGen - A Service Code Generator}},
booktitle = {8th Symposium on Languages, Applications and Technologies (SLATE 2019)},
pages = {23:1--23:8},
series = {Open Access Series in Informatics (OASIcs)},
ISBN = {978-3-95977-114-6},
ISSN = {2190-6807},
year = {2019},
volume = {74},
editor = {Rodrigues, Ricardo and Janou\v{s}ek, Jan and Ferreira, Lu{\'\i}s and Coheur, Lu{\'\i}sa and Batista, Fernando and Gon\c{c}alo Oliveira, Hugo},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/OASIcs.SLATE.2019.23},
URN = {urn:nbn:de:0030-drops-108905},
doi = {10.4230/OASIcs.SLATE.2019.23},
annote = {Keywords: Code Generation, Web services, micro-services}
}