| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- # urls.py
- from django.urls import path
- from .views import (
- ExtractProductAttributesView,
- ProductTypeListView,
- ProductTypeAttributesView,
- ProductAttributesUploadView,
- BatchExtractProductAttributesView,
- ProductListView,
- ProductUploadExcelView,
- ProductAttributeValueView,
- BulkProductAttributeValueView,
- # ProductAttributeValueUploadExcelView,
- ProductListWithAttributesView,
- ReadLocalJSONView
- )
- from .views import CacheManagementView, CacheStatsView
- urlpatterns = [
- # Existing endpoints
- path('extract/', ExtractProductAttributesView.as_view(), name='extract-attributes'),
- path('batch-extract-actual/', 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'),
- path('batch-extract/', ReadLocalJSONView.as_view(), name='ReadLocalJSONView'),
- ]
-
|