知识卡片
链接表单驱动状态
超媒体把资源视为信息节点,用URI连接节点。普通链接选择目标,表单还描述需要输入并传递的数据。服务在响应中返回可用链接和表单,客户端选择并执行它们,便逐步推进应用状态。浏览器能访问不同网站而不改自身源码,正是通用接口的效果;业务语义仍需要词汇和使用者理解。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- RESTful Web API导论 · 查看原书依据
Essentially, hypermedia provides the ability to link separate nodes, also called resources, such as documents, images, services, even snippets of text within a document, to each other. On the network, this connection is made using universal resource identifiers (URIs). When the connection includes the option of passing some data along, these links are expressed as forms that can prompt human users or scripted machines to supply inputs, too.
参考来源
- 位置:《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;小节:消息与超媒体)
- 结论依据:原文以超媒体把资源视为信息节点,用URI连接节点的机制或场景为依据;同小节余文补充本卡所列条件,按2022年原书语境整理。
- 原始内容:Essentially, hypermedia provides the ability to link separate nodes, also called resources, such as documents, images, services, even snippets of text within a document, to each other. On the network, this connection is made using universal resource identifiers (URIs). When the connection includes the option of passing some data along, these links are expressed as forms that can prompt human users or scripted machines to supply inputs, too.