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

面向REST API可用性的开发者视角:一项REST API指南研究

Developer Perspectives on REST API Usability: A Study of REST API Guidelines

IT University of Copenhagen(哥本哈根IT大学);Ruhr University Bochum(波鸿鲁尔大学);viadee AG(viadee股份公司)

Sven Peldszus, Jan Rutenkolk, Marcel Heide, Jan Sollmann, Benjamin Klatt, Frank Köhne, Thorsten Berger

AI总结:

研究通过访谈16名REST API专家,探讨REST API指南的可用性、有效性因素及开发者对严格指南的抵触,提出遵循惯例是关键,需考虑指南大小与组织需求的匹配。

摘要:

REST是当今提供基于网络服务的最广泛使用的架构风格。在服务导向时代(即软件即服务(SaaS))中,API已成为核心业务资产,并可以轻松暴露数百个操作。虽然精心设计的API有助于服务的商业成功,但设计不佳的API可能会威胁整个组织。鉴于其相关性和价值,许多指南已被提出用于设计可操作的API,类似于设计模式和编码标准。例如,Zalando和Microsoft提供了流行的REST API指南。然而,它们通常被视为太大且不适用,因此许多公司会创建并维护自己的指南,这本身就是一个挑战。然而,在实践中,开发者仍然难以设计出有效的REST API。为了改善这一状况,我们需要改进对采用、使用和创建REST API指南的实证理解。我们对16名REST API专家进行了访谈研究。我们确定了API可用性的概念、指南有效性因素、采用和设计指南的挑战以及最佳实践。我们识别出八个影响REST API可用性的因素,其中遵循惯例是最重要的因素。尽管指南实际上可以成为提高API可用性的有效手段,但开发者对严格指南存在显著抵触。指南的大小以及它如何与组织需求相匹配是两个重要的考虑因素。REST指南还需要随着组织的成长而发展,同时所有相关方都需要参与其开发和维护。自动化检查提供了一个机会,不仅可以将合规性执行嵌入到流程中,还可以用教育解释来证明指南规则。

英文摘要:

REST is today's most widely used architectural style for providing web-based services. In the age of service-orientation (a.k.a. Software as a Service (SaaS)) APIs have become core business assets and can easily expose hundreds of operations. While well-designed APIs contribute to the commercial success of a service, poorly designed APIs can threaten entire organizations. Recognizing their relevance and value, many guidelines have been proposed for designing usable APIs, similar to design patterns and coding standards. For example, Zalando and Microsoft provide popular REST API guidelines. However, they are often considered as too large and inapplicable, so many companies create and maintain their own guidelines, which is a challenge in itself. In practice, however, developers still struggle to design effective REST APIs. To improve the situation, we need to improve our empirical understanding of adopting, using, and creating REST API guidelines. We present an interview study with 16 REST API experts from industry. We determine the notion of API usability, guideline effectiveness factors, challenges of adopting and designing guidelines, and best practices. We identified eight factors influencing REST API usability, among which the adherence to conventions is the most important one. While guidelines can in fact be an effective means to improve API usability, there is significant resistance from developers against strict guidelines. Guideline size and how it fits with organizational needs are two important factors to consider. REST guidelines also have to grow with the organization, while all stakeholders need to be involved in their development and maintenance. Automated linting provides an opportunity to not only embed compliance enforcement into processes, but also to justify guideline rules with educational explanations.

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

↑