知识卡片

普通读书笔记卡 · 4927

超媒体连接三要素

理解等级:中级

超媒体应用把消息、动作和领域词汇组合起来:通用消息格式承载信息,链接和表单提供下一步动作,共享词汇赋予字段与动作业务含义。三者分别解决能否解析、怎样交互、怎样理解的问题;只有JSON数据字段而没有可发现动作,不能提供这里所说的运行期交互能力。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • RESTful Web API导论 · 查看原书依据

      Hypermedia-based implementations rely on three key elements: messages, actions, and vocabularies (see Figure 1-1). In hypermedia-based solutions, messages are passed using common formats like HTML, Collection+JSON, and SIREN. These messages contain content based on a shared domain vocabulary, such as PSD2 for banking, ACORD for insurance, or FIHR for health information. And these same messages include well-defined actions such as save, share, approve, and so forth.

    参考来源

    - 位置:《RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)》第01章《RESTful Web API导论》(来源项目 book-sources;源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/ch01.xhtml;小节:消息与超媒体) - 结论依据:原文以超媒体应用把消息、动作和领域词汇组合起来:通用消息格式承载信息,链接和表单提供下一步动作,共享词汇赋予字段与动作业务含义的机制或场景为依据;同小节余文补充本卡所列条件,按2022年原书语境整理。 - 原始内容:Hypermedia-based implementations rely on three key elements: messages, actions, and vocabularies (see Figure 1-1). In hypermedia-based solutions, messages are passed using common formats like HTML, Collection+JSON, and SIREN. These messages contain content based on a shared domain vocabulary, such as PSD2 for banking, ACORD for insurance, or FIHR for health information. And these same messages include well-defined actions such as save, share, approve, and so forth.