Presentation
Toward Dependency-Aware API Gateways
Author/s | Barakat, Saman
Sánchez Jerez, Ana Belén Segura Rueda, Sergio |
Department | Universidad de Sevilla. Departamento de Lenguajes y Sistemas Informáticos |
Publication Date | 2023-09-12 |
Deposit Date | 2024-01-23 |
Published in |
|
Abstract | 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 ... 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. |
Funding agencies | Ministerio de Ciencia e Innovación (MICIN). España |
Project ID. | PID2021-126227NB-C22
TED2021-131023B-C21 |
Citation | Barakat, S., Sánchez Jerez, A.B. y Segura Rueda, S. (2023). Toward Dependency-Aware API Gateways. En XVIII Jornadas de Ingeniería de Ciencia e Ingeniería de Servicios (JCIS 2023) Ciudad Real (España): SISTEDES: Sociedad de Ingeniería de Software y Tecnologías de Desarrollo de Software. |
Files | Size | Format | View | Description |
---|---|---|---|---|
11705-JCIS-2023-2165.pdf | 358.5Kb | [PDF] | View/ | |