I'm building a Python 3.10.9 FastAPI application. On my, HTTP GET single resource API endpoints, I'm accepting multiple query string elements, like this small sample:
amount__gt=1000&start_date__lt=2023-05-10
To get a query_string placeholder on the OpenAPI docs created by FastAPI I have a qs
parameter. When I call the endpoint using the OpenAPI docs I get this back:
qs=amount__gt=1000&start_date__lt=2023-05-10
Which comes back as a single parameter and value. However, when calling the endpoint with PostMan, I can build up the query string with individual elements, and get back the individual parameters and values. This is how the endpoint would be called by a program. Is there a way to get FastAPI to present an unnamed parameter in the OpenAPI interface?