app.blueprints.documents.DocumentResource
- class app.blueprints.documents.DocumentResource(api=None, *args, **kwargs)
Bases:
app.blueprints.documents.DocumentBaseResource
Attributes
The canonical way to decorate class-based views is to decorate the return value of as_view().
A list of methods this view can handle.
Setting this disables or force-enables the automatic options handling.
Methods
DocumentResource.__init__
([api])DocumentResource.as_view
(name, *class_args, ...)Converts the class into an actual view function that can be used with the routing system.
DocumentResource.delete
(document_id)DocumentResource.dispatch_request
(*args, ...)Subclasses have to override this method to implement the actual view function code.
DocumentResource.get
(document_id)DocumentResource.put
(document_id)Perform a payload validation on expected model if necessary