arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.13828cs.SE
收藏

通过持续优化和多语言SDK提高API文档的可理解性

Improving API Documentation Comprehensibility via Continuous Optimization and Multilingual SDK

Shujun Wang, Yongqiang Tian, Dengcheng He

摘要:

优化和维护最新的API文档对于不断发展的OpenAPI来说是一个具有挑战性的问题。在这篇海报中,我们提出了一个数据驱动的持续优化解决方案和多语言SDK生成方案,以提高API文档的可理解性。我们计算API完整性和API试验成功率之间的相关性。基于此,我们对API进行了分区,以确保每个API都有正确的优化方向。然后,我们提出一个细粒度(即,参数级别)持续优化解决方案,以实时注释API文档中的问题。基于上述解决方案,可以为API文档的优化和管理提供理论分析和支持。最后,我们将探讨OpenAPI的关键挑战,并介绍一个量身定制的解决方案TeaDSL,一个适用于所有OpenAPI网关的多语言SDK解决方案。TeaDSL是一种特定于领域的语言,用于表达OpenAPI网关,生成SDK,代码示例和测试用例。在线系统上的实验表明,这项工作的方法显着提高了用户体验学习OpenAPI。

英文摘要:

Optimizing and maintaining up-to-date API documentation is a challenging problem for evolving OpenAPIs. In this poster, we propose a data-driven continuous optimization solution and multilingual SDK generation scheme to improve the comprehensibility of API documentation. We compute the correlation between API integrity and API trial success rate. Based on this, we partition the API to ensure that each API has a correct optimization direction. Then, we propose a fine-grained(i.e., parameter level) continuous optimization solution to annotate problems in API documents in real-time. Based on the above resolutions, we can provide theoretical analysis and support for the optimization and management of API documents. Finally, we explore the crucial challenges of OpenAPIs and introduce a tailored solution, TeaDSL, a multi-language SDK solution for all OpenAPI gateways. TeaDSL is a domain-specific language that expresses OpenAPI gateways, generating SDKs, code samples, and test cases. The experiments evaluated on the online system show that this work's approach significantly improves the user experience of learning OpenAPIs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑