知识卡片
读取SIREN动作与实体
SIREN LINKS、ENTITIES、PROPERTIES分别读取链接、实体和属性,ACTIONS|FORMS读取动作表单;REL|LINK按关系找链接,NAME|FORM|ACTION按名称找动作。读取字段与执行动作是分开的步骤,只有取得合法动作元数据并补齐输入后,才能按相应机制构造请求。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 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