← 返回刚才阅读的位置

知识卡片

结构图卡 · 3447.a.2.b · 生成模型:未记录

先审资源和操作

理解等级:中级

在决定具体 URL 和负载前,先评审面向用户的资源模型和操作表。ADDR 将这一环节放在确定数字能力、用户任务和 API 边界之后,以及 REST、GraphQL 或 gRPC 的协议设计之前。用资源图明确对象和基数,再按操作列出用户、输入、输出及目标。

例如目录中一个商品可有零到多条评论,每条评论恰好属于一个商品。商品至少有一个分类,分类可包含零到多个商品。列表操作的筛选、排序和分页参数,以及查看操作的标识,都可用这份模型检查。外部目录界面由一个服务编排内部微服务,评审可进一步看外部语义是否被内部服务划分牵制。

结构图:

erDiagram
  PRODUCT ||--o{ REVIEW : has
  PRODUCT }o--|{ CATEGORY : belongs_to
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • API 设计评审 5.2 Running an API review meeting · 查看原书依据

      Getting different roles and teams involved with the API design to review and get consensus on the output of the fourth step—model API profiles (the conceptual data model and operations on which the API is based)—gives those involved a shared understanding of the data model and the terminology used to describe it. This model and the functions that operate on it can be captured with entity-relationship diagrams, tables, and so on.

    参考来源

    - 位置:《Automating API Delivery APIOps with OpenAPI》《第 05 章 API 设计评审》(5.2 Running an API review meeting;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-5.xhtml#p93) - 结论依据:说明为何要在实现协议之前评审概念数据模型与操作表。 - 原始内容:Getting different roles and teams involved with the API design to review and get consensus on the output of the fourth step—model API profiles (the conceptual data model and operations on which the API is based)—gives those involved a shared understanding of the data model and the terminology used to describe it. This model and the functions that operate on it can be captured with entity-relationship diagrams, tables, and so on.