Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad decorator_list AttributeLoad NameLoad attr decorator_list Call NameLoad AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call NameLoad AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad decorator_list AttributeLoad NameLoad attr decorator_list Call NameLoad AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list decorator_list Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str Str
N/A __future__ absolute_import N/A abc compat add_metaclass utils merge ViewableResource N/A object N/A N/A Base class for resources using the default GET view.

    If a resource class is derived from this class it must implement the
    :py:meth:`to_dict` method. Doing this will automatically enable the default
    GET view from rest_toolkit.
     to_dict N/A N/A self N/A N/A N/A Generate a (JSON-compatible) dictionary with resource data.

        This method is used by the default GET, PATCH and PUT views to generate
        the data for the response. It is also used by by the PATCH view
        to complete the (partial) data provided by a client before validation
        is done (see :py:class:`EditableResource` for details).
         N/A N/A NotImplemented N/A N/A abc abstractmethod N/A N/A add_metaclass N/A abc ABCMeta EditableResource N/A object N/A N/A Base class for resources using the default PATCH and PUT views.

    If a resource class is derived from this class it must implement the
    :py:meth:`to_dict`, :py:meth:`validate` and :py:meth:`update_from_dict`
    methods. Doing this will automatically enable the default GET, PATCH and
    PUT views from rest_toolkit.
     validate N/A N/A self data partial N/A N/A N/A Validate new data for the resource.

        This method is called to validate data received from a client before it
        is passed to :py:meth:`update_from_dict`.

        :param dict data: data to validate. The data is usually taken directly
            from JSON send by a client.
        :param bool partial: indicates if data contains the full resource state
            (as received in a PUT request), or only partial state (as received
            in a PATCH request). You can reconstruct the full resource state
            from partial data by using the :py:meth:`complete_partial_data`
            method.

        :raises HTTPException: if all further request processing should be aborted
            and the exception returned directly.
         N/A N/A NotImplemented N/A N/A abc abstractmethod to_dict N/A N/A self N/A N/A N/A Generate a (JSON-compatible) dictionary with resource data.

        This method is used by the default GET, PATCH and PUT views to generate
        the data for the response.
         N/A N/A NotImplemented N/A N/A abc abstractmethod update_from_dict N/A N/A self data replace N/A N/A N/A Update a resource.

        :param dict data: The data to validate. The data is usually taken
            directly from JSON send by a client.
        :param bool replace: Indicates if the provided data should fully
            replace the resource state (as should be done for a PUT request),
            or if only provided keys should be updated (as should be done
            for a PATCH request).
         N/A N/A NotImplemented N/A N/A abc abstractmethod complete_partial_data N/A N/A self data N/A N/A N/A 
        Complete partial object data.

        This method will be used by the validation extension to create a
        complete data overview from partial information, as submitted in
        a PATCH request, before trying to validate it.

        :param dict data: The partial data to extend. The data is usually taken
            directly from a PATCH request. This dictionary will not be modified.
        :rtype: dict
        :return: a new dictionary with the complete data for the resource.
         N/A N/A merge N/A N/A self to_dict data N/A N/A N/A add_metaclass N/A abc ABCMeta DeletableResource N/A object N/A N/A Base class for resources using the default DELETE views.

    If a resource class is derived from this class it must implement the
    :py:meth:`dlete` method. Doing this will automatically enable the default
    DELETE view from rest_toolkit.
     delete N/A N/A self N/A N/A N/A Delete the resource.

        This method must delete the resource, or mark it as deleted, so that it
        is no longer accessible through the REST API.
         N/A N/A NotImplemented N/A N/A abc abstractmethod N/A N/A add_metaclass N/A abc ABCMeta CollectionResource N/A object N/A validate_child N/A N/A self data N/A N/A N/A Validate data for a new child resource.

        This method is called to validate data received from a client before it
        is passed to :py:meth:`add_child`.

        :param dict data: data to validate. The data is usually taken directly
            from JSON send by a client.

        :raises HTTPException: if all further request processing should be aborted
            and the exception returned directly.
         N/A N/A NotImplemented N/A add_child N/A N/A self data N/A N/A N/A Create a new child resource.

        :param dict data: data for the new child. This data will already have been
             validated by the :py:meth:`validate_child` method.
        :return: response data for the view. This will generally be information
            about the newly created child.
        :rtype: dict
         N/A N/A NotImplemented N/A N/A N/A add_metaclass N/A abc ABCMeta N/A __all__ N/A DeletableResource EditableResource ViewableResource CollectionResource