知识卡片
机器交互需要语义边界
人会理解表单含义、寻找输入值并处理错误,机器没有这些免费能力。语义profile预先约定问题空间内所有可能字段与动作,客户端再据此把运行期表单字段映射到本地数据。新增机器不理解且无法供值的必填字段仍可能破坏交互;超媒体并不消除语义契约。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 用超媒体思考与设计 · 查看原书依据
An effective way to meet this challenge is to rely upon semantic profiles (see Recipe 3.4)—documents that detail all the possible property names and action details (links and forms) used for a set of problems (e.g., account management, payment services, etc.) to set boundaries on the vocabulary that a client application is expected to understand. In other words, the client and server can agree ahead of time on which data properties will be needed to successfully interact with the application.
参考来源
- 位置:《RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)》第02章《用超媒体思考与设计》(来源项目 book-sources;源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/ch02.xhtml;小节:韧性客户端)
- 结论依据:原文以人会理解表单含义、寻找输入值并处理错误,机器没有这些免费能力的机制或场景为依据;同小节余文补充本卡所列条件,按2022年原书语境整理。
- 原始内容:An effective way to meet this challenge is to rely upon semantic profiles (see Recipe 3.4)—documents that detail all the possible property names and action details (links and forms) used for a set of problems (e.g., account management, payment services, etc.) to set boundaries on the vocabulary that a client application is expected to understand. In other words, the client and server can agree ahead of time on which data properties will be needed to successfully interact with the application.