4.7 Article

Specification and Automated Analysis of Inter-Parameter Dependencies in Web APIs

Journal

IEEE TRANSACTIONS ON SERVICES COMPUTING
Volume 15, Issue 4, Pages 2342-2355

Publisher

IEEE COMPUTER SOC
DOI: 10.1109/TSC.2021.3050610

Keywords

Testing; Documentation; Web services; Tools; Standards; Restful API; Meters; Web API; REST; inter-parameter dependency; DSL; automated analysis

Ask authors/readers for more resources

The article presents an approach for specifying and analyzing inter-parameter dependencies in web APIs, introducing the Inter-parameter Dependency Language (IDL) and a mapping to constraint satisfaction problem (CSP). A tool suite is provided for conducting analysis on IDL specifications, paving the way for specification-driven applications in areas like code generation and testing.
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.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.7
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available