urls.py 567 B

123456789101112131415
  1. from django.urls import path
  2. from .views import (
  3. ExtractAttributesView,
  4. BatchExtractAttributesView,
  5. ProductAttributesView,
  6. AttributeReviewView
  7. )
  8. urlpatterns = [
  9. path('products/<int:product_id>/extract/', ExtractAttributesView.as_view()),
  10. path('products/batch-extract/', BatchExtractAttributesView.as_view()),
  11. path('products/<int:product_id>/attributes/', ProductAttributesView.as_view()),
  12. path('attributes/review/', AttributeReviewView.as_view()),
  13. path('attributes/<int:attribute_id>/review/', AttributeReviewView.as_view()),
  14. ]