# # urls.py # from django.urls import path # from .views import AttributeScoreView, BatchScoreView # urlpatterns = [ # path("attribute_score/", AttributeScoreView.as_view(), name="attribute_score"), # path("attribute_score//", AttributeScoreView.as_view(), name="get_attribute_score"), # path("batch_score/", BatchScoreView.as_view(), name="batch_score"), # ] # urls.py """ URL configuration for the Product Quality Scoring API """ from django.urls import path from core.views import ( AttributeScoreView, BatchScoreView, ContentRulesView, ProductScoreDetailView ) urlpatterns = [ # Single product scoring path('api/score/', AttributeScoreView.as_view(), name='score_product'), # Batch scoring path('api/batch-score/', BatchScoreView.as_view(), name='batch_score'), # Content rules management path('api/content-rules/', ContentRulesView.as_view(), name='content_rules'), # Get product score details path('api/product//score/', ProductScoreDetailView.as_view(), name='product_score_detail'), ]