from django.urls import path

from .views import (MaterialListAPIView, PartListCreateAPIView,
                    PartRetrieveUpdateDestroyAPIView,
                    OutSourceCreateAPIView,
                    OutSourceRetrieveUpdateDestroyAPIView,
                    PartFileCreateAPIView,
                    )

urlpatterns = [
    path('part/', PartListCreateAPIView.as_view()),
    path('part/<part_pk>', PartRetrieveUpdateDestroyAPIView.as_view()),
    path('outsource/', OutSourceCreateAPIView.as_view()),
    path('outsource/<outsource_pk>',
         OutSourceRetrieveUpdateDestroyAPIView.as_view()),
    path('files/', PartFileCreateAPIView.as_view()),
    path('material/', MaterialListAPIView.as_view()),
]
