from django.urls import path from apps.shop.views import * urlpatterns = [ path('product-category/create/', ProductCategoryCreateApi.as_view(), name='create_product_category'), path('product-category//', ProductCategoryRetrieveApi.as_view(), name='retrieve_product_category'), path('product-category/update//', ProductCategoryUpdateApi.as_view(), name='update_product_category'), path('product-category/delete//', ProductCategoryDeleteApi.as_view(), name='delete_product_category'), path('product-category/list/', ProductCategoryListApi.as_view(), name='list_product_category'), path('v2/product-category/list/', ProductsCategoryApi.as_view(), name='v2_list_product_category'), path('product/create/', ProductCreateApi.as_view(), name='create_product'), path('product//', ProductRetrieveApi.as_view(), name='retrieve_product'), path('product/update//', ProductUpdateApi.as_view(), name='update_product'), path('product/delete//', ProductDeleteApi.as_view(), name='delete_product'), path('product/list/', ProductListApi.as_view(), name='list_product'), path('product/list//', ProductListCategoryApi.as_view(), name='list_product_by_category'), path('order/create/', OrderCreateApi.as_view(), name='create_order'), path('order-and-item/create/', OrderAndItemCreateApi.as_view(), name='create_order_and_items'), path('order//', OrderRetrieveApi.as_view(), name='retrieve_order'), path('order/update//', OrderUpdateApi.as_view(), name='update_order'), path('order/delete//', OrderDeleteApi.as_view(), name='delete_order'), path('order/list/', OrderListApi.as_view(), name='list_order'), path('order/list-operator/', OrderListOperatorApi.as_view(), name='list_order_operator'), path('order//operator/', OrderRetrieveOperatorApi.as_view(), name='order_retrieve_operator'), path('order//operator/excel/', OrderRetrieveOperatorExcelApi.as_view(), name='order_retrieve_operator_excel'), path('order/iteams/list//', OrderItemsListApi.as_view(), name='list_order_items'), path('cart/', CartListApi.as_view(), name='list_cart'), path('cart/add/', CartCreateApi.as_view(), name='add_cart'), path('cart/delete//', CartDeleteApi.as_view(), name='delete_cart'), path('import/', ImportExcelView.as_view(), name='import_excel'), path('import/customer/', ImportExcelCustomersView.as_view(), name='import_excel_customer'), #path('import/city/', ImportExcelCitysView.as_view(), name='import_excel_city'), ]