app.blueprints.documents.NewDocumentResource

class app.blueprints.documents.NewDocumentResource(api=None, *args, **kwargs)

Bases: app.blueprints.documents.DocumentBaseResource

Attributes

NewDocumentResource.decorators

The canonical way to decorate class-based views is to decorate the return value of as_view().

NewDocumentResource.doc_serializer

NewDocumentResource.doc_service

NewDocumentResource.method_decorators

NewDocumentResource.methods

A list of methods this view can handle.

NewDocumentResource.parser

NewDocumentResource.provide_automatic_options

Setting this disables or force-enables the automatic options handling.

NewDocumentResource.representations

Methods

NewDocumentResource.__init__([api])

NewDocumentResource.as_view(name, ...)

Converts the class into an actual view function that can be used with the routing system.

NewDocumentResource.dispatch_request(*args, ...)

Subclasses have to override this method to implement the actual view function code.

NewDocumentResource.post()

NewDocumentResource.validate_payload(func)

Perform a payload validation on expected model if necessary