flask-rest-jsonapi
flask-rest-jsonapi copied to clipboard
Specific decorators
It would be better to implement method-specific decorators to give more flexibility of use as appropriate by transforming this definition:
class PersonList (ResourceDetail):
decorators = (cached, login_required)
in the following and more customizable definition:
class PersonList (ResourceDetail):
decorators = {
'get': (cached,),
'post': (login_required,),
}