# urls.py from django.urls import path from .views import ( ExtractProductAttributesView, ProductTypeListView, ProductTypeAttributesView, ProductAttributesUploadView, BatchExtractProductAttributesView, ProductListView, ProductUploadExcelView, ProductAttributeValueView, BulkProductAttributeValueView, # ProductAttributeValueUploadExcelView, ProductListWithAttributesView ) from .views import CacheManagementView, CacheStatsView urlpatterns = [ # Existing endpoints path('extract/', ExtractProductAttributesView.as_view(), name='extract-attributes'), path('batch-extract/', BatchExtractProductAttributesView.as_view(), name='batch-extract-attributes'), path('products/', ProductListView.as_view(), name='product-list'), path('products/upload-excel/', ProductUploadExcelView.as_view(), name='product-upload-excel'), path('products/upload-attributes/', ProductAttributesUploadView.as_view(), name='product-upload-attributes'), path('products/attributes/', ProductTypeAttributesView.as_view(), name='product-type-attributes'), path('product-types/', ProductTypeListView.as_view(), name='product-types-list'), # New endpoints for original attribute values path('products/with-attributes/', ProductListWithAttributesView.as_view(), name='products-with-attributes'), path('attribute-values/', ProductAttributeValueView.as_view(), name='attribute-values'), path('attribute-values/bulk/', BulkProductAttributeValueView.as_view(), name='attribute-values-bulk'), # path('attribute-values/upload-excel/', ProductAttributeValueUploadExcelView.as_view(), name='attribute-values-upload'), path('attribute-values/', ProductAttributeValueView.as_view(), name='attribute-values'), path('attribute-values/bulk/', BulkProductAttributeValueView.as_view(), name='attribute-values-bulk'), path('cache/management/', CacheManagementView.as_view(), name='cache-management'), path('cache/stats/', CacheStatsView.as_view(), name='cache-stats'), ]