app.blueprints.users.UserResource

class app.blueprints.users.UserResource(api=None, *args, **kwargs)

Bases: app.blueprints.users.UserBaseResource

Attributes

UserResource.decorators

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

UserResource.method_decorators

UserResource.methods

A list of methods this view can handle.

UserResource.provide_automatic_options

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

UserResource.representations

UserResource.task_service

UserResource.user_serializer

UserResource.user_service

Methods

UserResource.__init__([api])

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

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

UserResource.delete(user_id)

UserResource.dispatch_request(*args, **kwargs)

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

UserResource.get(user_id)

UserResource.put(user_id)

UserResource.validate_payload(func)

Perform a payload validation on expected model if necessary