From 767f0b7dbd50570bbe23f01a0b2d2792683d5110 Mon Sep 17 00:00:00 2001 From: Jono Yang Date: Fri, 31 May 2024 16:59:56 -0700 Subject: [PATCH] Remove unneeded API endpoints #241 #445 #453 Signed-off-by: Jono Yang --- purldb_project/urls.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/purldb_project/urls.py b/purldb_project/urls.py index 9831452f..90b7d04e 100644 --- a/purldb_project/urls.py +++ b/purldb_project/urls.py @@ -14,21 +14,15 @@ from rest_framework import routers -from clearcode.api import CDitemViewSet from packagedb.api import PackageViewSet from packagedb.api import PackageSetViewSet from packagedb.api import PackageUpdateSet from packagedb.api import PackageWatchViewSet from packagedb.api import ResourceViewSet -from matchcode.api import ApproximateDirectoryContentIndexViewSet -from matchcode.api import ApproximateDirectoryStructureIndexViewSet -from matchcode.api import ExactFileIndexViewSet -from matchcode.api import ExactPackageArchiveIndexViewSet -from minecode.api import PriorityResourceURIViewSet from minecode.api import ScannableURIViewSet from packagedb.api import PurlValidateViewSet from packagedb.to_purl import api_to_purl_router -from packagedb.from_purl import api_from_purl_router +from packagedb.from_purl import api_from_purl_router from packagedb.api import CollectViewSet from drf_spectacular.views import SpectacularAPIView from drf_spectacular.views import SpectacularSwaggerView @@ -39,12 +33,6 @@ api_router.register('update_packages', PackageUpdateSet, 'update_packages') api_router.register('package_sets', PackageSetViewSet) api_router.register('resources', ResourceViewSet) -api_router.register('approximate_directory_content_index', ApproximateDirectoryContentIndexViewSet) -api_router.register('approximate_directory_structure_index', ApproximateDirectoryStructureIndexViewSet) -api_router.register('exact_file_index', ExactFileIndexViewSet) -api_router.register('exact_package_archive_index', ExactPackageArchiveIndexViewSet) -api_router.register('cditems', CDitemViewSet, 'cditems') -api_router.register('on_demand_queue', PriorityResourceURIViewSet) api_router.register('validate', PurlValidateViewSet, 'validate') api_router.register('collect', CollectViewSet, 'collect') api_router.register('watch',PackageWatchViewSet)