inveniosoftware / flask-resources

REST APIs for Flask
https://flask-resources.readthedocs.io
MIT License
3 stars 21 forks source link

Centralize more endpoints in a blueprint #77

Open ppanero opened 4 years ago

ppanero commented 4 years ago

[might move to flask-resources]

When an application becomes complex, with several endpoints, many times we have to create a resource for just one route. e.g. invenio-draft-resources:

app.register_blueprint(record_bp)
app.register_blueprint(draft_bp)
app.register_blueprint(draft_action_bp)
app.register_blueprint(draft_version_bp)

We might want to provide yes-another-level of abstraction. Sort of as_blueprint(actions=True, version=True) or something like that.