Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/api/deposit_status.py
# Copyright (C) 2017-2020 The Software Heritage developers | # Copyright (C) 2017-2020 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from django.shortcuts import render | from django.shortcuts import render | ||||
from rest_framework import status | from rest_framework import status | ||||
from .common import SWHBaseDeposit | from .common import APIBase | ||||
from .converters import convert_status_detail | from .converters import convert_status_detail | ||||
from ..errors import NOT_FOUND, make_error_response | from ..errors import NOT_FOUND, make_error_response | ||||
from ..errors import make_error_response_from_dict | from ..errors import make_error_response_from_dict | ||||
from ..models import DEPOSIT_STATUS_DETAIL, Deposit | from ..models import DEPOSIT_STATUS_DETAIL, Deposit | ||||
class SWHDepositStatus(SWHBaseDeposit): | class SWHDepositStatus(APIBase): | ||||
"""Deposit status. | """Deposit status. | ||||
What's known as 'State IRI' in the sword specification. | What's known as 'State IRI' in the sword specification. | ||||
HTTP verbs supported: GET | HTTP verbs supported: GET | ||||
""" | """ | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |