通过知识前置减少 API 调试开销
Reduce API Debugging Overhead via Knowledge Prepositioning
AI总结:
本文提出通过从 API 调用日志中提取参数特性、约束和 API 间依赖知识来前置知识,并利用学习-based 预测方法在调用前预测执行结果,从而显著降低 OpenAPI 调试开销并改善用户体验。
摘要:
OpenAPI 表示一种行为,即生产者提供应用程序编程接口(API)以帮助最终用户访问其数据、资源和服务。通常,API 有许多需要输入的参数。然而,用户正确理解和记录这些参数具有挑战性。本文开发了一个 API 工作台,以帮助用户学习和调试 API。基于该工作台,已提出大量探索性工作来降低学习和调试 API 的开销。我们从海量 API 调用日志中探索知识,例如参数特性(如可枚举性)和约束(如最大/最小值),以缩小参数值的范围。然后,我们提出一种细粒度方法,通过提取 API 之间的依赖知识来丰富 API 文档。最后,我们提出一种基于学习的预测方法,在 API 被调用之前预测 API 执行结果,显著减少用户调试周期。在在线系统上评估的实验表明,本工作的方法显著改善了调试 OpenAPI 的用户体验。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。