swh.deposit.api.private.deposit_upload_urls module#
- class swh.deposit.api.private.deposit_upload_urls.APIUploadURLs[source]#
Bases:
APIPrivateView
,APIGet
,DepositReadMixin
Private API endpoint returning a list of URLs for downloading tarballs uploaded with a deposit request.
Only GET is supported.
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- process_get(request: HttpRequest, collection_name: str, deposit: Deposit) Tuple[int, List[str], str] [source]#
Returns list of URLs for downloading tarballs uploaded with a deposit request.
- Parameters:
request – input HTTP request
collection_name – Collection owning the deposit
deposit – Deposit to get tarball download URLs
- Returns:
Tuple status, list of URLs, content-type