知识卡片

操作参考卡 · 5191

读取WSTL状态转移描述

理解等级:中级

WSTL TITLE读标题,ACTIONS、DATA、RELATED、CONTENT读取不同元素,ID|REL|NAME|FORM|TAG|TARGET <name>按标签找单项。该组命令面向WSTL表示,适合检查服务发布的转移与数据元信息;命令列名并不等于本附录定义了WSTL完整状态执行语义。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 附录D:HyperCLI操作参考 · 查看原书依据

      WSTL Returns a strong-typed version of response from top of the stack (vnd.wstl+json) .. TITLE Returns title string from a WSTL response .. ACTIONS Returns actions array from a WSTL response .. DATA Returns entities array from a WSTL response .. RELATED Returns related object from a WSTL response .. CONTENT Returns content object from a WSTL response .. IDǀRELǀNAMEǀFORMǀTAGǀTARGET <stringǀ$#> Returns a single node .. IDSǀRELSǀNAMESǀFORMSǀTAGSǀTARGETS Returns a simple list .. PATH <JSONPathǀ$#> Returns results of a JSONPath query from a WSTL 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) - 结论依据:原文直接给出相应职责、操作或比较;本卡保留其用途与适用边界,不将历史接口表述当作当前工具验证。 - 原始内容:WSTL Returns a strong-typed version of response from top of the stack (vnd.wstl+json) .. TITLE Returns title string from a WSTL response .. ACTIONS Returns actions array from a WSTL response .. DATA Returns entities array from a WSTL response .. RELATED Returns related object from a WSTL response .. CONTENT Returns content object from a WSTL response .. IDǀRELǀNAMEǀFORMǀTAGǀTARGET <stringǀ$#> Returns a single node .. IDSǀRELSǀNAMESǀFORMSǀTAGSǀTARGETS Returns a simple list .. PATH <JSONPathǀ$#> Returns results of a JSONPath query from a WSTL response