Open mixmastamyk opened 7 years ago
Try using something like
app = Flask()
manager = APIManager(...)
blueprint = manager.create_api_blueprint('foobar.whatever', ...)
app.register_blueprint(blueprint)
The APIManager.create_api_blueprint()
method allows you to specify the name of the Blueprint as the first argument.
Hmm, from what I gather about the flask extensions I've encountered so far, this is done by the extension itself.
Hi,
I use endpoint names to decide whether to redirect to login form and was hoping that the ones from this package could have a prefix like the others. For example:
But restless' endpoints look like this:
Would you mind prefixing them with "api." or something? I probably could use .endswith('api') to detect them but a prefix would match the others better.
Thanks.