-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Could not build url for endpoint" when using nested blueprints #517
Comments
Flask-restx was written before Flask >2.0.0 introduced nested blueprints and therefore the Can I ask why you are interested in using nested blueprints rather than just registering another top level blueprint or using namespaces? |
I'm interested in using nested blueprints since it seemed like the easiest way (mostly easy to register, as well as easy to add a redirect from As for namespaces, i am using them already to register various things to api_v1, but i don't really see how i could use it to have multiple different versions on the API with different prefix. But if there isn't an easy way to fix it to work with nested blueprints, i'll follow your suggestion and use multiple top-level blueprints instead |
I meet this problem today. It would be an useful change to support nested blueprint for me.
Thanks for consideration! |
Code
Repro Steps (if applicable)
/api/v1
pageExpected Behavior
The interactive swagger documentation for api_v1 is shown
Actual Behavior
The exception
Could not build url for endpoint 'api_v1.specs'. Did you mean 'api.api_v1.specs' instead?
is raisedError Messages/Stack Trace
Environment
Additional Context
This is the code used to define api_v1
The text was updated successfully, but these errors were encountered: