Master Thesis Defense on Automatically Identifying Parameter Constraints for Complex Web APIs: A Case Study at Adyen
When: September 16, 2020, 16:00 - 17:30
Web APIs can have constraints on parameters, such that not all parameters are either always required or always optional. Sometimes the presence or value of one parameter could cause another parameter to be required. Additionally, parameters could have restrictions on what kinds of values are valid. We refer to these as inter-parameter and single-parameter constraints respectively. Having a clear overview of the constraints can help API consumers to integrate without the need for additional support and with fewer integration faults. We developed two approaches for identifying parameter constraints in complex web APIs. One approach uses online documentation to infer inter-parameter constraints, the other depends on static code analysis to extract inter- and single-parameter constraints from the control ﬂow of the API’s source code. In our case study at several APIs at Adyen, the documentation- and code-based approach can identify 21% and 53% percent of the constraints respectively. When the constraints identiﬁed by both approaches are combined, 66% of the inter-parameter constraints can be identiﬁed. Code analysis is able to identify 78% of the single-parameter constraints.