Closed mbierma closed 7 months ago
This use case is uncommon.
def endpoint(*args, **kwargs):
...
endpoint_foo = bp1.route("/foo", methods=["GET"])(bp1.arguments(PetQuery(), location="query")(endpoint))
endpoint_bar = bp2.route("/bar", methods=["GET"])(bp2.arguments(PetQuery(), location="query")(endpoint))
Not so nice visually but this is supposed to work.
Flask supports multiple endpoints for the same function, for example:
Attempting the following:
Will fail with an error similar to:
It seems that all endpoints associated with the same HTTP method for a function have their parameters combined. Is there a common approach for working around this issue?
Seems like this is related to some previous discussions