app.blueprints.tasks.TaskResource

class app.blueprints.tasks.TaskResource(api=None, *args, **kwargs)

Bases: flask_restx.resource.Resource

Attributes

TaskResource.decorators

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

TaskResource.method_decorators

TaskResource.methods

A list of methods this view can handle.

TaskResource.provide_automatic_options

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

TaskResource.representations

TaskResource.task_service

Methods

TaskResource.__init__([api])

TaskResource.as_view(name, *class_args, ...)

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

TaskResource.dispatch_request(*args, **kwargs)

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

TaskResource.validate_payload(func)

Perform a payload validation on expected model if necessary