You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After talking IRL with @lnielsen, in context with what was discussed with @fenekku, we thought of renaming the Resource to ResourceView. This idea rose from the question "Should the resource return the http response code to the view?"
Regarding e.g. Flask-RESTful and Flask-Resources: main issue is that none of the existing solutions is strong on content negotiation. E.g .flask restful adds 1) request parsing and 2) resourceful routing
Re 1), then webargs module does a lot better job
Re 2) resourceful routing, it basically doesn't add anything on top of a standard MethodView
and re. content negotiation it's too simplistic for our needs
The main thing that Flask-Resources adds is:
Gathering multiple view endpoints for a REST resource into a single view class
Decouples view from seralization/deserialization and allows this to be injected to the view
We used Flask-RESTful in Flask-IIIF and initially considered it for Invenio-Records-REST but in the end went with MethodView
The text was updated successfully, but these errors were encountered:
After talking IRL with @lnielsen, in context with what was discussed with @fenekku, we thought of renaming the
Resource
toResourceView
. This idea rose from the question "Should the resource return the http response code to the view?"@lnielsen words:
Regarding e.g. Flask-RESTful and Flask-Resources: main issue is that none of the existing solutions is strong on content negotiation. E.g .flask restful adds 1) request parsing and 2) resourceful routing
Re 1), then webargs module does a lot better job
Re 2) resourceful routing, it basically doesn't add anything on top of a standard MethodView
and re. content negotiation it's too simplistic for our needs
The main thing that Flask-Resources adds is:
We used Flask-RESTful in Flask-IIIF and initially considered it for Invenio-Records-REST but in the end went with MethodView
The text was updated successfully, but these errors were encountered: