Skip to content

Doctrine filters documentation should use QueryParameterΒ #2202

@toyib-fayaz

Description

@toyib-fayaz

API Platform version(s) affected: 3.0

Description
In the Official Documentation, it is mentioned that we should use QueryParameter instead of ApiFilter
doctrine-filters. But on this documentation page, there is no example of how QueryParameter is used for adding a filter; instead, every example uses ApiFilter. I found some examples here in laravel-filters, but when I similarly tried to use QueryParameter in my Symfony api, it doesn't work

How to reproduce
Use QueryParameter Attribute instead of ApiFilter and then try to add a query parameter to url and check whether it works. Check the documentation here laravel-filters to check how to use it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions