Files
crmApi/apps/customer/urls.py
T

43 lines
2.3 KiB
Python

from django.urls import path
from apps.customer.views import *
urlpatterns = [
path('responsible-group/list/', ResponsibleGroupListApi.as_view(), name='list_responsible_group'),
path('responsible-group/<int:responsible_group_id>/', ResponsibleGroupRetrieveApi.as_view(),
name='retrieve_responsible_group'),
path('responsible-group/create/', ResponsibleGroupCreateApi.as_view(), name='create_responsible_group'),
path('responsible-group/delete/<int:responsible_group_id>/', ResponsibleGroupDeleteApi.as_view(), name='delete_responsible_group'),
path('shive_ashenaei/create/', ShiveAshenaeiCreateApi.as_view(), name='create_shive_ashenaei'),
path('shive_ashenaei/delete/<int:shive_id>/', ShiveAshenaeiDeleteApi.as_view(), name='delete_shive_ashenaei'),
path('shive_ashenaei/list/', ShiveAshenaeiListApi.as_view(), name='list_shive_ashenaei'),
path('shive_ashenaei/<int:shive_id>/', ShiveAshenaeiRetrieveApi.as_view(), name='retrive_shive_ashenaei'),
path('create/', CustomerCreateApi.as_view(), name='create_customer'),
path('update/<int:customer_id>/', CustomerUpdateApi.as_view(), name='update_customer'),
path('delete/<int:customer_id>/', CustomerDeleteApi.as_view(), name='delete_customer'),
path('list/', CustomerListApi.as_view(), name='list_customer'),
path('<int:customer_id>/', CustomerRetrieveApi.as_view(), name='retrive_customer'),
path('<int:customer_id>/summary/', CustomerSummary.as_view(), name='customer_summary'),
path('<int:customer_id>/note/create/', CustomerCreateNoteApi.as_view(), name='customer_note_create'),
path('<int:customer_id>/note/list/', CustomerListNoteApi.as_view(), name='customer_note_list'),
path('<int:customer_id>/note/<int:note_id>/', CustomerRetrieveNoteApi.as_view(), name='customer_note_retrieve'),
path('<int:customer_id>/note/<int:note_id>/delete/', CustomerDeleteNoteApi.as_view(), name='customer_note_delete'),
path('<int:customer_id>/note/<int:note_id>/edit/', CustomerEditNoteApi.as_view(), name='customer_note_edit'),
path('v2/list/', CustomerListApiV2.as_view(), name='list_customer_v2'),
path('v2/create/', CustomerCreateApiV2.as_view(), name='customer_create_v2'),
path('form-item/', CustomerFormItemApi.as_view(), name='customer-form-item'),
path('customer-panel/', CustomerPanelApi.as_view(), name='customer-panel'),
]