← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1340.f.1.b

REST用约束组织资源交互

理解等级:高级

REST通过统一资源接口、客户端服务端分离、请求无会话依赖、可缓存、分层和可选按需代码组织交互,常借HTTP实现。GET读、POST创建、PUT替换、PATCH局部修改、DELETE删除是本章表格的典型映射,仍需具体资源语义。它是架构约束组合,不只是把RPC路径改成名词,也不是一条独立网络协议。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 软件接口 · 查看原书依据

      REST comprises a set of six constraints imposed on the interactions between elements: • Uniform interface. All interactions use the same form (typically HTTP). Resources on the providing side of the interface are specified via URIs (Uniform Resource Identifiers).

    参考来源

    - 位置:《Software Architecture in Practice, 4th Edition》第15章《软件接口》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch15.html) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:REST comprises a set of six constraints imposed on the interactions between elements: • Uniform interface. All interactions use the same form (typically HTTP). Resources on the providing side of the interface are specified via URIs (Uniform Resource Identifiers).