知识卡片

普通读书笔记卡 · 10296.b.1 · 生成模型:未记录

接口契约入库触发检查

理解等级:中级

把 OpenAPI 定义文件保存在作为主记录的 Git 仓库,团队可用 PR 评审并让 CI 按每次版本变化检查。集中保存更便于查找和复用共有组件。设计工具可读写仓库,索引服务可提供发现能力。需要取舍的是,所有修改者要掌握适用的 Git 流程。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 什么是 APIOps 1.5 Key principles of APIOps with OpenAPI · 查看原书依据

      Your OpenAPI definition files should be stored in a version control system such as Git to enforce immutability and retain a complete version history of your file. This gives you auditability and enables you to use Git-based processes to drive automation via your CI/CD pipeline. Team members can also collaborate on changing API definition files through the normal Git workflows of raising PRs.

    参考来源

    - 位置:《Automating API Delivery APIOps with OpenAPI》《第 01 章 什么是 APIOps》(1.5 Key principles of APIOps with OpenAPI;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-1.xhtml#p103) - 结论依据:原文将契约版本历史、审计、PR 协作与自动化放在同一版本化工作流。 - 原始内容:Your OpenAPI definition files should be stored in a version control system such as Git to enforce immutability and retain a complete version history of your file. This gives you auditability and enables you to use Git-based processes to drive automation via your CI/CD pipeline. Team members can also collaborate on changing API definition files through the normal Git workflows of raising PRs.