← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2275.as.6.f.3.c.1.b.1.b.2.a

REST围绕资源表示

理解等级:初级

REST把重要业务对象抽象为有标识的资源,通过统一接口操作其表示。资源可以组合合同、客户和关系,并不等同于一行数据库记录。GET通常读取,PUT替换、PATCH局部修改、DELETE删除;POST处理请求语义不应只理解为数据库插入。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Services and API Management · 查看原书依据

      Representational State Transfer (REST) is an architectural style that defines a set of constraints and abstraction principles to be used for creating web services.1 A key concept in REST is resources, meaning anything that’s important enough to be abstracted and referenced as a thing in itself. Resources can be any object or source of information that can be uniquely identified, such as a customer, contract,

    参考来源

    - 位置:《Data Management at Scale》第05章《Services and API Management》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292,源文件:extracted/Data Management at Scale/_epub-src/OEBPS/ch05.html) - 结论依据:原文对Resources can be any object的解释、约束及上下文支持本卡;内容为中文归纳,不把架构建议当作所有组织的必然规律。 - 原始内容:Representational State Transfer (REST) is an architectural style that defines a set of constraints and abstraction principles to be used for creating web services.1 A key concept in REST is resources, meaning anything that’s important enough to be abstracted and referenced as a thing in itself. Resources can be any object or source of information that can be uniquely identified, such as a customer, contract,