jeyroik/extas-protocols-jsonrpc-expand

该软件包最新版本(0.1.0)没有提供许可信息。

从JSON RPC请求中获取expand

0.1.0 2020-08-26 09:28 UTC

This package is auto-updated.

Last update: 2024-09-26 18:37:30 UTC


README

tests codecov.io PHPStan Enabled Extas Installer v3 Latest Stable Version Total Downloads Dependents

extas-protocols-jsonrpc-expand

提供从json-rpc请求参数中提取expand的功能。

规范

{
  "request": {
    "type": "object",
    "properties": {
      "expand": {
        "type": "array"
      }
    }
  }
}

请求示例

{
  "id": "2f5d0719-5b82-4280-9b3b-10f23aff226b",
  "jsonrpc": "2.0",
  "method": "entity.index",
  "params": {
    "expand": ["property1", "property2", "entity.*"]
  }
}

注意关于如何组织支持通配符(.*)的说明,请参阅extas-expands软件包的文档。

代码中的应用

请参阅extas-protocols软件包中的示例。