This will wrap the django rest framework @api_view decorator with the @scrudful decorator. This will require adding support for OPTIONS to the ScrudfulViewFunc.__call__ method, using the http_schema_or_func parameter.
The http_schema_or_func parameter MUST accept one of:
None, which implies ['GET']
List of HTTP methods; e.g. ['GET']
A dictionary for the JSON HTTP schema
A function accepting at least two positional arguments: view_instance and request. This function MUST return one of a list of HTTP methods (e.g. ['GET']`) or a dictionary for the JSON HTTP schema.
This will wrap the django rest framework
@api_view
decorator with the@scrudful
decorator. This will require adding support forOPTIONS
to theScrudfulViewFunc.__call__
method, using thehttp_schema_or_func
parameter.The
http_schema_or_func
parameter MUST accept one of:None
, which implies['GET']
['GET']
view_instance
andrequest
. This function MUST return one of a list of HTTP methods (e.g. ['GET']`) or a dictionary for the JSON HTTP schema.