-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Labels
Description
While looking at #272, we are trying to find a way to have URL parameters and POST request body defined in the openAPI docs. I am having trouble understanding the code which follows _create_endpoint.
- What is its intention?
- What problem is it trying to solve?
There seems to be a link between it and **kwargs usage but can't see a reason to keep them in as query_params can be retrieved from the starlette.request object. e.g. request.query_params
. We are pondering creating a PR that removes the _create_endpoint and potentially would mean that the URI classes also can go.
Simplification is probably a win but only if it doesn't remove functionality that is necessary and intentional.