jeyroik / extas-protocols-jsonrpc-expand
该软件包最新版本(0.1.0)没有提供许可信息。
从JSON RPC请求中获取expand
0.1.0
2020-08-26 09:28 UTC
Requires
Requires (Dev)
- jeyroik/extas-repositories-mongo: 1.*
- jeyroik/extas-snuffbox: 0.*
- phpunit/phpunit: ^9
- slim/slim: ^3.0
- vlucas/phpdotenv: ^3.4
This package is auto-updated.
Last update: 2024-09-26 18:37:30 UTC
README
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
软件包中的示例。