from django.urls import path from procurement.views import ComponentSearchView, SupplierSearchView, DocumentationView from procurement.api import ComponentAPIList, ComponentAPIRetrieve, SupplierAPIList, SupplierAPIRetrieve, SupplierAPIComponents urlpatterns = [ path('', ComponentSearchView.as_view(), name='component-search'), path('suppliers', SupplierSearchView.as_view(), name='supplier-search'), path('documentation', DocumentationView.as_view(), name='documentation'), # API Urls path('api/components/', ComponentAPIList.as_view(), name='api-component-list'), path('api/components//', ComponentAPIRetrieve.as_view(), name='api-component-retrieve'), path('api/suppliers/', SupplierAPIList.as_view(), name='api-supplier-list'), path('api/suppliers//', SupplierAPIRetrieve.as_view(), name='api-supplier-retrieve'), path('api/suppliers//components', SupplierAPIComponents.as_view(), name='api-supplier-components'), ]