* feat: cross product recommendations endpoint enhancement for amplitude recommendations * fix: general recommendations fix and linting fixes * fix: query string parameter value check fix * chore: updated positioning of docstring * fix: Adjusted docstring for CPR serializer * fix: Separated view, added new url, fallback recommendations fixes and more * fix: removed dangerous default value argument * chore: made necessary linting changes * chore: updated doctring description * fix: removed dangerous default argument * chore: updated doctring for ProductRecommendationsView
26 lines
870 B
Python
26 lines
870 B
Python
"""
|
|
Learner Recommendations URL routing configuration.
|
|
"""
|
|
|
|
from django.conf import settings
|
|
from django.urls import re_path
|
|
|
|
from lms.djangoapps.learner_recommendations import views
|
|
|
|
app_name = "learner_recommendations"
|
|
|
|
urlpatterns = [
|
|
re_path(fr'^amplitude/{settings.COURSE_ID_PATTERN}/$',
|
|
views.AboutPageRecommendationsView.as_view(),
|
|
name='amplitude_recommendations'),
|
|
re_path(fr'^cross_product/{settings.COURSE_ID_PATTERN}/$',
|
|
views.CrossProductRecommendationsView.as_view(),
|
|
name='cross_product_recommendations'),
|
|
re_path(fr'^product_recommendations/{settings.COURSE_ID_PATTERN}/$',
|
|
views.ProductRecommendationsView.as_view(),
|
|
name='product_recommendations'),
|
|
re_path(r"^courses/$",
|
|
views.DashboardRecommendationsApiView.as_view(),
|
|
name="courses"),
|
|
]
|