知识卡片

操作参考卡 · 5189

读取SIREN动作与实体

理解等级:中级

SIREN LINKS、ENTITIES、PROPERTIES分别读取链接、实体和属性,ACTIONS|FORMS读取动作表单;REL|LINK按关系找链接,NAME|FORM|ACTION按名称找动作。读取字段与执行动作是分开的步骤,只有取得合法动作元数据并补齐输入后,才能按相应机制构造请求。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      SIREN Returns a strong-typed version of response from top of the stack (vnd.siren+json) .. LINKS Returns links array from a SIREN response .. ACTIONSǀFORMS Returns actions array from a SIREN response .. ENTITIES Returns entities array from a SIREN response .. PROPERTIES Returns properties array from a SIREN response .. TAGǀCLASS <stringǀ$#> Returns nodes associated with the CLASS value .. IDǀENTITY <stringǀ$#> Returns an entity associated with the ID .. RELǀLINK <stringǀ$#> Returns a link associated with the REL .. NAMEǀFORMǀACTION <stringǀ$#> Returns an action associated with the NAME .. IDSǀRELSǀNAMESǀFORMSǀTAGSǀCLASSES 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) - 结论依据:原文直接给出相应职责、操作或比较;本卡保留其用途与适用边界,不将历史接口表述当作当前工具验证。 - 原始内容:SIREN Returns a strong-typed version of response from top of the stack (vnd.siren+json) .. LINKS Returns links array from a SIREN response .. ACTIONSǀFORMS Returns actions array from a SIREN response .. ENTITIES Returns entities array from a SIREN response .. PROPERTIES Returns properties array from a SIREN response .. TAGǀCLASS <stringǀ$#> Returns nodes associated with the CLASS value .. IDǀENTITY <stringǀ$#> Returns an entity associated with the ID .. RELǀLINK <stringǀ$#> Returns a link associated with the REL .. NAMEǀFORMǀACTION <stringǀ$#> Returns an action associated with the NAME .. IDSǀRELSǀNAMESǀFORMSǀTAGSǀCLASSES Returns a simple list .. PATH <JSONPathǀ$#> Returns results of a JSONPath query from a SIREN response