知识卡片
Richardson四级演进
Richardson 模型用四级观察 Web API 如何利用 HTTP:0 级把 HTTP 当作单一远程调用通道;1 级引入资源 URL;2 级使用方法与状态码表达操作结果;3 级在响应中加入可导航的相关链接。它帮助定位接口表达能力的增量,而非打分表。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Microservice APIs》第 4 章《Principles of REST API design》(源文件:_epub-src/OEBPS/Text/04.htm)
- 结论依据:原文按 0–3 级依次说明单端点 RPC、资源路径、HTTP 方法和状态码、HATEOAS 链接四种设计要素。
- 原始内容:The Richardson maturity model distinguishes four levels (from level 0 to level 3) of “maturity” in an API. Each level introduces additional elements of good REST API design ... Level 1 introduces the concept of resource URLs. ... Level 2 introduces the concept of HTTP verbs and status codes. ... Level 3 introduces the concept of discoverability by applying the principles of HATEOAS