swh.deposit.api.private package

Module contents

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

Bases: object

Deposit Read mixin

class swh.deposit.api.private.SWHPrivateAPIView(**config)[source]

Bases: swh.deposit.config.SWHDefaultConfig, swh.deposit.api.common.SWHAPIView

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

authentication_classes: Sequence[Type[rest_framework.authentication.BaseAuthentication]] = ()
permission_classes: Sequence[Type[rest_framework.permissions.BasePermission]] = (<class 'rest_framework.permissions.AllowAny'>,)
checks(req, collection_name, deposit_id=None)[source]

Override default checks implementation to allow empty collection.

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