swh.deposit.api.private package

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, swh.deposit.api.common.AuthenticatedAPIView

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=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]