-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Description
Description
I pose this question to the collective intelligence of the great Symfony developers.
Related to generating documentation for an api automatically I repeatedly stumble across the same question: how can I document my api easily with some standard specification (like OpenAPI).
Almost everything can be automatically generated from existing Symfony configuration and / or annotations using the routing component and / or statically analyzing the Controllers for return types etc..
The one point that always eludes me is are programmatically generating the query string parameters. Imagine I have an endpoint http://whatever.api/users?filter=active
, the query string parameter filter
is per convention parsed as such - $request->query->get('filter')
in the Controller (or whatever is accessing the Request object).
Thus my question: does anyone know of a standardized Symfony way to do this, kind of like requirements but defining / enforcing query string params not as part of the URL path.
If not - would this be something people would like to see and a valid feature request for either the Routing component or the HttpFoundation (or somewhere else)?
Example
No response