验证API互操作性设计需求:一种使用OpenAPI的静态分析方法
Validating API Design Requirements for Interoperability: A Static Analysis Approach Using OpenAPI
AI总结:
本文提出S.E.O.R.A工具,通过静态分析方法验证API设计需求,提升互操作性和治理,自动化检查以提高API设计的一致性和可重用性。
摘要:
RESTful API在当今企业中是构建可互操作、模块化和可维护软件系统的核心。同时,支持系统演进、服务互操作性和跨组织边界治理,以确保这些API的质量和一致性至关重要。然而,评估API设计质量,作为非功能性需求任务的一部分,仍然是一个主要依赖手动和随意的过程,特别是在早期开发阶段。采用设计科学研究(DSR)方法,我们提取了用户需求,通过文献综述确定了75条API设计规则,并实现了一个可配置的规则引擎,用于检测OpenAPI规范中的结构违规。所提出工具通过允许规则的自定义、启用或禁用,支持组织适应性,从而实现领域特定标准的整合。评估通过结构化实验和主题分析涉及行业专家进行。API质量验证有助于将技术设计与需求和企业架构对齐,通过加强企业系统之间的互操作性和治理。结果表明,S.E.O.R.A有助于在早期验证非功能性API需求,提供可操作且可追溯的反馈,并与需求获取和质量保证过程很好地契合。它通过自动化检查,这些检查本需手动检查,从而改进API设计流程,支持一致和可重用的符合性实践。这项工作通过将设计原则作为可验证的约束进行操作化,并将其嵌入实用的验证工具中,为需求工程做出了贡献。未来方向包括IDE集成、扩展规则覆盖范围和真实世界部署,以支持敏捷API开发生命周期中的持续合规。
英文摘要:
RESTful APIs are central in developing interoperable, modular, and maintainable software systems in enterprises today. Also, it is essential to support system evolution, service interoperability, and governance across organizational boundaries to ensure good quality and consistency of these APIs. However, evaluating API design quality, which is part of non-functional requirement tasks, remains a largely manual and ad hoc process, particularly during early development. Using a Design Science Research (DSR) methodology, we elicited user needs, identified 75 API design rules using a literature review, and implemented a configurable rule engine to detect structural violations in OpenAPI specifications. The proposed tool supports organizational adaptability by allowing rules to be customized, enabled, or disabled, enabling integration of domain-specific standards. The evaluation was conducted through structured experiments and thematic analysis involving industry experts. API quality validation contributes to aligning technical designs with requirements and enterprise architecture by strengthening interoperability and governance between enterprise systems. The results show that S.E.O.R.A facilitates early validation of non-functional API requirements, provides actionable and traceable feedback, and aligns well with requirements elicitation and quality assurance processes. It improves the API design process by automating checks that would otherwise require manual inspection, thus supporting consistent and reusable conformance practices. This work contributes to requirements engineering by operationalizing design principles as verifiable constraints and embedding them into a practical validation tool. Future directions include IDE integration, expanded rule coverage, and real-world deployment to support continuous compliance in agile API development lifecycles.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。