| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # # ==================== urls.py ====================
- # from django.urls import path
- # from .views import ExtractProductAttributesView,ProductTypeListView, ProductTypeAttributesView, ProductAttributesUploadView, BatchExtractProductAttributesView, ProductListView, ProductUploadExcelView
- # urlpatterns = [
- # path('extract/', ExtractProductAttributesView.as_view(), name='extract-attributes'),
- # path('batch-extract/', BatchExtractProductAttributesView.as_view(), name='batch-extract-attributes'),
- # path('products/', ProductListView.as_view(), name='batch-extract-attributes'),
- # path('products/upload-excel/', ProductUploadExcelView.as_view(), name='product-upload-excel'),
- # path('products/upload-attributes/', ProductAttributesUploadView.as_view(), name='product-upload-excel'),
- # path('products/attributes/', ProductTypeAttributesView.as_view(), name='product-upload-excel'),
- # path('product-types/', ProductTypeListView.as_view(), name='product-types-list'),
- # ]
- # urls.py
- from django.urls import path
- from .views import (
- ExtractProductAttributesView,
- ProductTypeListView,
- ProductTypeAttributesView,
- ProductAttributesUploadView,
- BatchExtractProductAttributesView,
- ProductListView,
- ProductUploadExcelView,
- ProductAttributeValueView,
- BulkProductAttributeValueView,
- # ProductAttributeValueUploadExcelView,
- ProductListWithAttributesView
- )
- 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'),
- ]
|