add product
This commit is contained in:
1 parent
423d4cf40e
commit
c8d45dd07c
58 files changed
+8309
-674
No files matched your search
@@ -1,7 +1,25 @@
|
||||
from django.urls import path
|
||||
from apps.shop.views import *
|
||||
from apps.shop.views.management import (
|
||||
ProductManagementListApi, ProductManagementDetailApi, CategoryManagementListApi,
|
||||
CategoryManagementDetailApi, ProductBulkApi, ProductExportApi,
|
||||
ProductImportPreviewApi, ProductImportListApi, ProductImportDetailApi,
|
||||
ProductImportConfirmApi, ProductImportReportApi, ProductImportTemplateApi,
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
path('manage/products/', ProductManagementListApi.as_view()),
|
||||
path('manage/products/bulk/', ProductBulkApi.as_view()),
|
||||
path('manage/products/export/', ProductExportApi.as_view()),
|
||||
path('manage/products/<int:pk>/', ProductManagementDetailApi.as_view()),
|
||||
path('manage/categories/', CategoryManagementListApi.as_view()),
|
||||
path('manage/categories/<int:pk>/', CategoryManagementDetailApi.as_view()),
|
||||
path('manage/import/preview/', ProductImportPreviewApi.as_view()),
|
||||
path('manage/import/template/', ProductImportTemplateApi.as_view()),
|
||||
path('manage/imports/', ProductImportListApi.as_view()),
|
||||
path('manage/imports/<int:pk>/', ProductImportDetailApi.as_view()),
|
||||
path('manage/imports/<int:pk>/confirm/', ProductImportConfirmApi.as_view()),
|
||||
path('manage/imports/<int:pk>/report/', ProductImportReportApi.as_view()),
|
||||
path('product-category/create/', ProductCategoryCreateApi.as_view(), name='create_product_category'),
|
||||
path('product-category/<int:category_id>/', ProductCategoryRetrieveApi.as_view(), name='retrieve_product_category'),
|
||||
path('product-category/update/<int:category_id>/', ProductCategoryUpdateApi.as_view(), name='update_product_category'),
|
||||
|
||||
Reference in new issue
Block a user