Closed nuvolapl closed 1 year ago
I've been searching for the same solution. But sounds better using the query params without the array sintax.
Ex: curl 'http://localhost/api/examples?limit=1&offset=2'
@xabbuh @GuilhemN
@lopesrichard Are you sure? I have a different opinion. Grouped parameters are much more user-friendly in the code.
I think that this implementation is too much opinionated. Pagination has always been a tricky topic.
pagination[limit]=1&pagination[offset]=2
limit=1&offset=2'
page=1&size=100'
page=1'
Range
headerUnless there is a general agreement on what should be done, I would prefer to now add this into the core of this bundle
maybe only the query string conversion could be extracted.
Usage
config/packages/fos_rest.yaml
:src/Controller/ExampleController
:Example request