Routing priority - ordering shouldnt matter? #2627
aiman-alsari
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all
I feel like the documented behaviour on routing priority is not a great solution.
I came to Starlette because Connexion uses Starlette internally. Having to order things a specific way in my openapi spec seems clunky to me. Surely Starlette could automatically order routes from most specific to least specific internally, without the user having to do this?
In the context of connexion, it has a flow-on effect of changing the order of API endpoints in the swagger docs, which shows up to end-users of the API.
Beta Was this translation helpful? Give feedback.
All reactions