← 返回刚才阅读的位置

知识卡片

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

设计优先使并行开发成立

理解等级:中级

设计优先先用 OpenAPI 写出接口契约,把渲染的文档和 mock 给预期消费者验证,尽早发现设计偏差。契约达成共识后,后端、测试和消费者集成能独立推进,并可共享组件及代码生成输入。代码优先适合需要快速完成的简单变化,契约可能更贴近实现者视角。API-first 是按产品投资和管理 API 的策略,设计优先是其中可采用的设计方法。

契约稳定后,[[同一契约生成多端产物]]说明提供方和消费者可分别获得哪些输入。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      The design-first (also called specification-first or contract-first) approach to API development is the practice of iteratively creating an API definition before writing the code to implement it. The design-first approach is an important part of managing an API as a product. It means thinking about who the consumer of the API is, the core problem-solving benefit the API provides for that consumer, and prototyping and validating the design that addresses these before building the API product.

    参考来源

    - 位置:《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#p92) - 结论依据:原文以先写契约、再验证和实现说明设计优先,并把它放入产品化实践。 - 原始内容:The design-first (also called specification-first or contract-first) approach to API development is the practice of iteratively creating an API definition before writing the code to implement it. The design-first approach is an important part of managing an API as a product. It means thinking about who the consumer of the API is, the core problem-solving benefit the API provides for that consumer, and prototyping and validating the design that addresses these before building the API product.