| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- # # 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/<str:sku>/", 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
- 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'),
- ]
|