arXiv · 2304.06692
Reduce API Debugging Overhead via Knowledge Prepositioning
Abstract
OpenAPI indicates a behavior where producers offer Application Programming Interfaces (APIs) to help end-users access their data, resources, and services. Generally, API has many parameters that need to be entered. However, it is challenging for users to understand and document these parameters correctly. This paper develops an API workbench to help users learn and debug APIs. Based on this workbench, much exploratory work has been proposed to reduce the overhead of learning and debugging APIs. We explore the knowledge, such as parameter characteristics (e.g., enumerability) and constraints (e.g., maximum/minimum value), from the massive API call logs to narrow the range of parameter values. Then, we propose a fine-grained approach to enrich the API documentation by extracting dependency knowledge between APIs. Finally, we present a learning-based prediction method to predict API execution results before the API is called, significantly reducing user debugging cycles. The experiments evaluated on the online system show that this work's approach substantially improves the user experience of debugging OpenAPIs.
Explore related subjects
Keep this discovery
Shujun Wang, Yongqiang Tian, Dengcheng He. 2023-03-23. Reduce API Debugging Overhead via Knowledge Prepositioning. https://doi.org/10.1145/3543873.3587311
Cite the original work for its findings. Save a collection to share your selection of sources.