知识卡片
读取HAL链接与内嵌资源
HAL LINKS取得链接集合,HAL EMBEDDED取得内嵌项目;HAL REL <name>等选取单节点,HAL PATH <JSONPath>做结构路径选择。链接用于继续导航,内嵌对象提供随响应附带的数据;HAL本身不标准化完整表单,不应从存在LINKS推断当前响应包含可提交动作。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 附录D:HyperCLI操作参考 · 查看原书依据
HAL Returns a strong-typed version of response from top of the stack (vnd.hal+json) .. LINKS Returns links array from a HAL response .. EMBEDDED Returns items array from a HAL response .. IDǀRELǀKEYǀNAMEǀTAG <stringǀ$#> Returns a single node .. IDSǀRELSǀKEYSTAGS Returns a simple list .. PATH <JSONPathǀ$#> Returns results of a JSONPath query from a HAL response
参考来源
- 位置:《RESTful Web API Patterns and Practices Cookbook》Appendix D. Using the HyperCLI(来源项目book-sources,源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/app04.xhtml)
- 结论依据:原文直接给出相应职责、操作或比较;本卡保留其用途与适用边界,不将历史接口表述当作当前工具验证。
- 原始内容:HAL Returns a strong-typed version of response from top of the stack (vnd.hal+json) .. LINKS Returns links array from a HAL response .. EMBEDDED Returns items array from a HAL response .. IDǀRELǀKEYǀNAMEǀTAG <stringǀ$#> Returns a single node .. IDSǀRELSǀKEYSTAGS Returns a simple list .. PATH <JSONPathǀ$#> Returns results of a JSONPath query from a HAL response