inveniosoftware / inveniosoftware/flask-resources
Centralize more endpoints in a blueprint
Open
- Dominant language
- Python
- Stars
- 3
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
[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`:
```python
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.
Contributor guide
Assessment
This issue has not been assessed yet.