Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/api/collection.py
- This file was moved from swh/deposit/api/deposit.py.
Show All 11 Lines | from ..parsers import ( | ||||
SWHAtomEntryParser, | SWHAtomEntryParser, | ||||
SWHFileUploadTarParser, | SWHFileUploadTarParser, | ||||
SWHFileUploadZipParser, | SWHFileUploadZipParser, | ||||
SWHMultiPartParser, | SWHMultiPartParser, | ||||
) | ) | ||||
from .common import ACCEPT_ARCHIVE_CONTENT_TYPES, APIPost | from .common import ACCEPT_ARCHIVE_CONTENT_TYPES, APIPost | ||||
class APIPostDeposit(APIPost): | class CollectionAPI(APIPost): | ||||
"""Deposit request class defining api endpoints for sword deposit. | """Deposit request class defining api endpoints for sword deposit. | ||||
What's known as 'Col IRI' in the sword specification. | What's known as 'Col-IRI' in the sword specification. | ||||
HTTP verbs supported: POST | HTTP verbs supported: POST | ||||
""" | """ | ||||
parser_classes = ( | parser_classes = ( | ||||
SWHMultiPartParser, | SWHMultiPartParser, | ||||
SWHFileUploadZipParser, | SWHFileUploadZipParser, | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |