Autor: Barakat, Saman
Cargando...
E-mails conocidos
saman.barakat@gmail.com
Fecha de nacimiento
Proyectos de investigación
Unidades organizativas
Puesto de trabajo
Apellidos
Barakat
Nombre de pila
Saman
Nombre
Nombres alternativos
Afiliaciones conocidas
University of Seville, Spain
Páginas web conocidas
Página completa del ítem
Notificar un error en este autor
2 resultados
Resultados de la búsqueda
Mostrando 1 - 2 de 2
Artículo Automated Code Generation for Inter-parameter Dependencies in REST APIsBarakat, Saman; Barba Roque, Enrique; Sánchez Jerez, Ana Belén; Segura Rueda, Sergio. Actas de las XVII Jornadas de Ingeniería de Ciencia e Ingeniería de Servicios (JCIS 2022), 2022-09-05.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.Artículo Toward Dependency-Aware API GatewaysBarakat, Saman; Sánchez Jerez, Ana Belén; Segura Rueda, Sergio. Actas de las XVIII Jornadas de Ingeniería de Ciencia e Ingeniería de Servicios (JCIS 2023), 2023-09-12.Web APIs often include inter-parameter dependencies that constrain how input parameters can be combined to form valid calls to the service. API requests violating one or more of these dependencies result in an unnecessary exchange of messages, causing a waste of time and user quota. Also, dependencies are often not correctly checked by the servers, resulting in critical failures or uninformative error responses. In this paper, we propose extending API gateways to support the detection and explanation of inter-parameter dependencies violations. To achieve this goal, we leveraged IDL4OAS, an OAS extension for describing the dependencies among input parameters in web APIs, and IDLReasoner, a constraint-based IDL reasoner. Both were integrated into a prototype tool using Spring Cloud Gateway. Preliminary evaluation results on five industrial API operations show that our approach can successfully detect and explain all invalid requests, reducing the response time by around 80.31% and minimizing potential input validation failures.