from django.urls import path, re_path from . import views urlpatterns = [ path(r'list/', views.BoundListViewSet.as_view({"get": "list", "post": "create"}), name="boundlist"), re_path(r'^list/(?P\d+)/$', views.BoundListViewSet.as_view({ 'get': 'retrieve', 'put': 'update', 'patch': 'partial_update', 'delete': 'destroy', }), name="boundlist_1"), path(r'detail/', views.BoundDetailViewSet.as_view({"get": "list", "post": "create" }), name="bounddetail"), re_path(r'^detail/(?P\d+)/$', views.BoundDetailViewSet.as_view({ 'get': 'retrieve', 'put': 'update', 'patch': 'partial_update', 'delete': 'destroy', }), name="bounddetail_1"), path(r'outdetail/', views.OutBoundDetailViewSet.as_view({"get": "list", "post": "create" }), name="outbounddetail"), re_path(r'^outdetail/(?P\d+)/$', views.OutBoundDetailViewSet.as_view({ 'get': 'retrieve', 'put': 'update', 'patch': 'partial_update', 'delete': 'destroy', }), name="outbounddetail_1"), path(r'batch/', views.BoundBatchViewSet.as_view({"get": "list", "post": "create" }), name="boundbatch"), path(r'batch/container/', views.BatchContainerAPIView.as_view(), name="batchcontainer"), path(r'batch/count/', views.MaterialStatisticsViewSet.as_view({"get": "list" }), name="materialstatistics"), re_path(r'^batch/count/(?P\d+)/$', views.MaterialStatisticsViewSet.as_view({ 'get': 'retrieve', }), name="materialstatistics_1"), re_path(r'^batch/(?P\d+)/$', views.BoundBatchViewSet.as_view({ 'get': 'retrieve', 'put': 'update', 'patch': 'partial_update', 'delete': 'destroy', }), name="boundbatch_1"), path(r'outdemand/', views.OutBoundDemandViewSet.as_view({"put": "batch_list", "post": "create", "get": "list" }), name="outboundbatchcontainer"), path(r'batchdemand/', views.OutBoundDemandViewSet.as_view({ "post": "distribute", "put": "batch_demanded_list" }), name="outboundbatchcontainer"), path(r'outbatch/', views.OutBoundBatchViewSet.as_view({"get": "list", "post": "create" }), name="outboundbatch"), re_path(r'^outbatch/(?P\d+)/$', views.OutBoundBatchViewSet.as_view({ 'get': 'retrieve', 'put': 'update', 'patch': 'partial_update', 'delete': 'destroy', }), name="outboundbatch_1"), path(r'batchlog/', views.BoundBatchLogViewSet.as_view({"get": "list", "post": "create" }), name="boundbatchlog"), ]