When not using entities as the api resources, in order to filter collections one or more custom filters can be applied to the classes annotated with the [#ApiResource]
attribute.
Posts for: #api-platform
State management in Api Platform
Fetch data and mutate state for custom api resources when using the Api Platform framework.