krilo89 / jsonapi-rql-finder-bundle
jsonapi-bundle-rql-finder 为 paknahad/jsonapi-bundle 提供了 RQL 过滤语法。
3.0.2
2022-05-12 09:08 UTC
Requires
- php: ^7.4|^8.0
- andreas-glaser/doctrine-rql: ^0.4
- paknahad/jsonapi-bundle: ^5.0
README
jsonapi-bundle-rql-finder
为 paknahad/jsonapi-bundle 提供的 RQL 查找器。
此包只是 paknahad/jsonapi-bundle 和 andreas-glaser/doctrine-rql 之间的链接
安装
composer require krilo89/jsonapi-rql-finder-bundle
将以下行添加到 config/bundles.php
Krilo89\JsonApiRqlFinderBundle\Krilo89JsonApiRqlFilterBundle::class => ['all' => true],
使用方法
在查询中包含 RQL 过滤器,参数为 rql=
https:///api/yourendpoint?rql=RQL string.
有关 RQL 字符串的文档,请参阅 https://github.com/xiag-ag/rql-parser/