Presentation
Automated Code Generation for Inter-parameter Dependencies in REST APIs
Author/s | Barakat, Saman
Barba Roque, Enrique Sánchez Jerez, Ana Belén Segura Rueda, Sergio |
Department | Universidad de Sevilla. Departamento de Lenguajes y Sistemas Informáticos |
Publication Date | 2022 |
Deposit Date | 2024-01-22 |
Published in |
|
Abstract | The generation of code templates from REST API specifications is a common practice in industry. However, existing tools neglects the dependencies among input parameters (so called inter-parameter dependencies), extremelly ... The generation of code templates from REST API specifications is a common practice in industry. However, existing tools neglects the dependencies among input parameters (so called inter-parameter dependencies), extremelly common in practice and usually described in natural language. As a result, developers are responsible for implementing the corresponding validation logic manually, a tedious and error-prone process. In this paper, we present an approach for the automated generation of code for inter-parameter dependencies specified using the IDL4OAS extension. As a proof of concept, we present an extension of the popular openapi-generator tool ecosystem, automating the generation of Java and Python code for the management of inter-parameter dependencies in both, servers and clients. Preliminary results show the effectiveness of the approach in accelerating the development of APIs while making them potentially more reliable. |
Funding agencies | European Commission (EC). Fondo Europeo de Desarrollo Regional (FEDER) Junta de Andalucía Gobierno de España |
Project ID. | P18-FR-2895
US-1264651 RTI2018-101204-B-C21 |
Citation | Barakat, S., Barba Roque, E., Sánchez Jerez, A.B. y Segura Rueda, S. (2022). Automated Code Generation for Inter-parameter Dependencies in REST APIs. En XVII Jornadas de Ingeniería de Ciencia e Ingeniería de Servicios (JCIS 2022) (1-4), Santiago de Compostela: Sistedes. |
Files | Size | Format | View | Description |
---|---|---|---|---|
Automated Code Generation for.pdf | 287.1Kb | [PDF] | View/ | |