swh.deposit.api.private package

Submodules:

Module contents:

class swh.deposit.api.private.DepositReadMixin[source]

Bases: object

Deposit Read mixin

class swh.deposit.api.private.APIPrivateView[source]

Bases: swh.deposit.config.APIConfig, rest_framework.views.APIView

Mixin intended as private api (so no authentication) based API view (for the private ones).

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

checks(req, collection_name, deposit=None)[source]

Override default checks implementation to allow empty collection.

get(request, collection_name=None, deposit_id=None, *args, **kwargs)[source]
put(request, collection_name=None, deposit_id=None, *args, **kwargs)[source]