Specification and Automated Analysis of Inter-Parameter Dependencies in Web APIs
- 11 January 2021
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Services Computing
- Vol. 15 (4) , 2342-2355
Abstract
Web services often impose inter-parameter dependencies that restrict the way in which two or more input parameters can be combined to form valid calls to the service. Unfortunately, current specification languages for web services like the OpenAPI Specification (OAS) provide no support for the formal description of such dependencies, which makes it hardly possible to automatically discover and interact with services without human intervention. In this article, we present an approach for the specification and automated analysis of inter-parameter dependencies in web APIs. We first present a domain-specific language, called Inter-parameter Dependency Language (IDL), for the specification of dependencies among input parameters in web services. Then, we propose a mapping to translate an IDL document into a constraint satisfaction problem (CSP), enabling the automated analysis of IDL specifications using standard CSP-based reasoning operations. Specifically, we present a catalogue of seven analysis operations on IDL documents allowing to compute, for example, whether a given request satisfies all the dependencies of the service. Finally, we present a tool suite including an editor, a parser, an OAS extension, a constraint programming-aided library, and a test suite supporting IDL specifications and their analyses. Together, these contributions pave the way for a new range of specification-driven applications in areas such as code generation and testing.Keywords
All Related Versions
Funding Information
- Ministerio de Economa Industria y Competitividad Gobierno de Espaa (RTI2018-101204- B-C21)
- Ministerio de Educacin y Formacin Profesional Gobierno de Espaa (FPU17/04077)
- Consejera de Economa Innovacin Ciencia y Empleo Junta de Andaluca (P18-FR-2895, US-1264651)
This publication has 20 references indexed in Scilit:
- Inter-parameter Constraints in Contemporary Web APIs2017
- Dependence Analysis for Web Services Data Mutation TestingLecture Notes in Electrical Engineering, 2016
- Modeling Service Level Agreements with Linked USDL AgreementIEEE Transactions on Services Computing, 2016
- Inferring Data Contract for Web-Based API2014
- Comprehensive Explanation of SLA Violations at RuntimeIEEE Transactions on Services Computing, 2013
- Inferring dependency constraints on parameters for web services2013
- ACTS: A Combinatorial Test Generation Tool2013
- Automated analysis of feature models 20 years later: A literature reviewInformation Systems, 2010
- Dynamic Constraint-Based Invocation of Web ServicesLecture Notes in Computer Science, 2006
- How to formalize it?Information and Software Technology, 1998