知识卡片

操作参考卡 · 5194

按表示类型选择解析命令

理解等级:中级

书中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

    参考来源

    - 位置:《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) - 结论依据:原文直接给出相应职责、操作或比较;本卡保留其用途与适用边界,不将历史接口表述当作当前工具验证。 - 原始内容: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