swh.deposit.api.private.deposit_releases module#
- class swh.deposit.api.private.deposit_releases.APIReleases[source]#
Bases:
APIPrivateView
,APIGet
Deposit request class to list releases related to a deposit.
HTTP verbs supported: GET
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- process_get(request, collection_name: str, deposit: Deposit) Tuple[int, Any, str] [source]#
Create a list of releases related to the
deposit
.- Parameters:
request (Request)
collection_name – Collection owning the deposit
deposit – Deposit concerned by the reading
- Returns:
Tuple status, a list of deposits as dicts (sorted by increasing date), content-type