知识卡片
按表示类型选择解析命令
书中FJ面向forms+json,提供METADATA/LINKS/ITEMS及ID/TAG/REL/NAME选择;MASH与PRAG分别面向各自表示,提供LINKS、ITEMS、TAG、REL、NAME和PATH入口。相似子命令不表示媒体类型可互换,先确认响应格式再选解析族。附录开头对部分格式使用“计划支持”,命令表却列出入口,故本卡仅作为该版目录,实际可用性待所选工具版本验证。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 附录D:HyperCLI操作参考 · 查看原书依据
FJ Returns a strong-typed version of JSON+FORMS response from top of the stack (forms+json) .. METADATA Returns metadata array from a response .. LINKS Returns links array from a response .. ITEMS Returns items array from a response .. ID <stringǀ$#> Returns an element (metadata, link, item) associated with the ID .. TAG <stringǀ$#> Returns matching nodes .. REL <stringǀ$#> Returns a link associated with the REL .. NAME <stringǀ$#> Returns an element (metadata, link, property) associated with the NAME .. IDSǀNAMESǀRELSǀFORMSǀTAGS Returns a simple list .. PATH <JSONPathǀ$#> Returns results of a JSONPath query from a response MASH Returns a strong-typed version of response from top of the stack (vnd.mash+json) .. METADATA Returns metadata array from a response .. LINKS Returns links array from a response .. ITEMS Returns items array from a response .. TAG <stringǀ$#> Returns matching nodes .. ID <stringǀ$#> Returns an element (metadata, link, item) associated with the ID .. REL <stringǀ$#> Returns a link associated with the REL .. NAME <stringǀ$#> Returns an element (metadata, link, property) associated with the NAME .. IDSǀNAMESǀRELSǀFORMSǀTAGS Returns a simple list .. PATH <JSONPathǀ$#> Returns results of a JSONPath query from a SIREN response PRAG Returns a strong-typed version of response from top of the stack (vnd.prag+json) .. METADATA Returns metadata array from a PRAG response .. LINKS Returns links array from a PRAG response .. ITEMS Returns items array from a PRAG response .. ID <stringǀ$#> Returns an element (metadata, link, item) associated with the ID .. TAG <stringǀ$#> Returns matching nodes .. REL <stringǀ$#> Returns a link associated with the REL .. NAME <stringǀ$#> Returns an element (metadata, link, property) associated with the NAME .. IDSǀNAMESǀRELSǀFORMSǀTAGS Returns a simple list .. PATH <JSONPathǀ$#> Returns results of a JSONPath query from a SIREN response