# # 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, BatchScoreViewV2, ContentRulesView, ExcelUploadView, ) from .views import open_outlook_mail from .views import ProductTypeQualityMetricsView from .views import rr_content_card_view urlpatterns = [ # Single product scoring path('api/score/', AttributeScoreView.as_view(), name='score_product'), path('api/batch-scor-v0/', BatchScoreView.as_view(), name='batch_score'), path('api/batch-score/', BatchScoreViewV2.as_view(), name='batch_score'), path('api/content-rules/', ContentRulesView.as_view(), name='content_rules'), path('api/upload-rules/', ExcelUploadView.as_view(), name='upload_rules'), path('api/quality-metrics/', ProductTypeQualityMetricsView.as_view(), name='quality-metrics'), path('run-script/', open_outlook_mail, name='open_outlook_mail'), path('api/rr-content-card/', rr_content_card_view, name='rr_content_card_api'), ]