swh.deposit.api.private.deposit_list module

class swh.deposit.api.private.deposit_list.APIList[source]

Bases: ListAPIView, APIPrivateView

Deposit request class to list the deposit’s status per page.

HTTP verbs supported: GET

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

serializer_class

alias of DepositSerializer

pagination_class

alias of DefaultPagination

paginate_queryset(queryset)[source]

Return a single page of results. This enriches the queryset results with metadata if any.

get_queryset()[source]

Retrieve queryset of deposits (with some optional filtering).

swh.deposit.api.private.deposit_list.deposit_list_datatables(self, request, *args, **kwargs)[source]

Special API view to list and filter deposits, produced responses are intended to be consumed by datatables js framework used in deposits admin Web UI.