avantis / queryparse
query generator for laravel/lumen based on IBM's route specifications
This package is auto-updated.
Last update: 2025-03-26 12:52:40 UTC
README
This package provides a class with a set of methods to facilitate the writing of queries according to the basis written by IBM and some changes / additions that we consider necessary
Documentatio for use
The documentation for use is under construction
Pagination results
Overview
You can paginate the results of the GET collection methods by providing extra URL parameters. For example:
GET /microservice/v1/resource?items_per_page=10&page=2
Sorting results
Overview You can sort microservice results of the GET collection methods by providing extra URL parameters. For example:
GET /microservice/v1/resource?sort={"resource_status":"desc","resource_name":"asc"}
Filtering results
Overview You can filter the results of the GET collection methods by providing extra URL parameters. For example:
GET /microservice/v1/resource?filters=[{"resource_id":["gt",10],"resource_name":["contains","br"]},{"resource_status":["equals",2]}]
Selecting fields
Overview You can select the fields to be listed in the results of the GET collection methods by providing extra URL parameters. For example:
GET /microservice/v1/resource?fields=resource_id,resource_name