Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pmakwana93 committed Oct 17, 2024
1 parent fbe5571 commit 9f3e20b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 177 deletions.
1 change: 0 additions & 1 deletion enterprise_catalog/apps/api/v2/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import ddt
from rest_framework.reverse import reverse

from enterprise_catalog.apps.api.v1.tests.mixins import APITestMixin
from enterprise_catalog.apps.catalog.constants import (
Expand Down
13 changes: 0 additions & 13 deletions enterprise_catalog/apps/api/v2/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,21 @@
from django.urls import path, re_path
from rest_framework.routers import DefaultRouter

from enterprise_catalog.apps.api.v2.views.enterprise_catalog_contains_content_items import (
EnterpriseCatalogContainsContentItemsV2,
)
from enterprise_catalog.apps.api.v2.views.enterprise_catalog_get_content_metadata import (
EnterpriseCatalogGetContentMetadataV2,
)
from enterprise_catalog.apps.api.v2.views.enterprise_customer import (
EnterpriseCustomerViewSetV2,
)


app_name = 'v2'

router = DefaultRouter()
router.register(r'enterprise-catalogs', EnterpriseCatalogContainsContentItemsV2, basename='enterprise-catalog-content-v2')
router.register(r'enterprise-customer', EnterpriseCustomerViewSetV2, basename='enterprise-customer-v2')

urlpatterns = [
re_path(
r'^enterprise-catalogs/(?P<uuid>[\S]+)/get_content_metadata',
EnterpriseCatalogGetContentMetadataV2.as_view({'get': 'get'}),
name='get-content-metadata-v2'
),
path(
'enterprise-customer/<enterprise_uuid>/content-metadata/<content_identifier>/',
EnterpriseCustomerViewSetV2.as_view({'get': 'content_metadata'}),
name='customer-content-metadata-retrieve-v2'
),
]

urlpatterns += router.urls

This file was deleted.

123 changes: 0 additions & 123 deletions enterprise_catalog/apps/api/v2/views/enterprise_customer.py

This file was deleted.

0 comments on commit 9f3e20b

Please sign in to comment.