Skip to content

What is the purpose of _create_endpoint? #274

@rsmith013

Description

@rsmith013

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions