* feat: TNL-11173 authoring API offered as v0, not v1 * docs: correct swaggerfile for authoring api --------- Co-authored-by: Bernard Szabo <bszabo@edx.org> Co-authored-by: Jesper Hodge <jhodge@outlook.de>
85 lines
2.0 KiB
Python
85 lines
2.0 KiB
Python
""" Contenstore API v1 URLs. """
|
|
|
|
from django.urls import re_path, path
|
|
|
|
from openedx.core.constants import COURSE_ID_PATTERN
|
|
|
|
from .views import (
|
|
CourseDetailsView,
|
|
CourseTeamView,
|
|
CourseGradingView,
|
|
CourseRerunView,
|
|
CourseSettingsView,
|
|
CourseVideosView,
|
|
HomePageView,
|
|
ProctoredExamSettingsView,
|
|
ProctoringErrorsView,
|
|
HelpUrlsView,
|
|
VideoUsageView
|
|
)
|
|
|
|
app_name = 'v1'
|
|
|
|
VIDEO_ID_PATTERN = r'(?P<edx_video_id>[-\w]+)'
|
|
|
|
urlpatterns = [
|
|
path(
|
|
'home',
|
|
HomePageView.as_view(),
|
|
name="home"
|
|
),
|
|
re_path(
|
|
fr'^videos/{COURSE_ID_PATTERN}$',
|
|
CourseVideosView.as_view(),
|
|
name="course_videos"
|
|
),
|
|
re_path(
|
|
fr'^videos/{COURSE_ID_PATTERN}/{VIDEO_ID_PATTERN}/usage$',
|
|
VideoUsageView.as_view(),
|
|
name="video_usage"
|
|
),
|
|
re_path(
|
|
fr'^proctored_exam_settings/{COURSE_ID_PATTERN}$',
|
|
ProctoredExamSettingsView.as_view(),
|
|
name="proctored_exam_settings"
|
|
),
|
|
re_path(
|
|
fr'^proctoring_errors/{COURSE_ID_PATTERN}$',
|
|
ProctoringErrorsView.as_view(),
|
|
name="proctoring_errors"
|
|
),
|
|
re_path(
|
|
fr'^course_settings/{COURSE_ID_PATTERN}$',
|
|
CourseSettingsView.as_view(),
|
|
name="course_settings"
|
|
),
|
|
re_path(
|
|
fr'^course_details/{COURSE_ID_PATTERN}$',
|
|
CourseDetailsView.as_view(),
|
|
name="course_details"
|
|
),
|
|
re_path(
|
|
fr'^course_team/{COURSE_ID_PATTERN}$',
|
|
CourseTeamView.as_view(),
|
|
name="course_team"
|
|
),
|
|
re_path(
|
|
fr'^course_grading/{COURSE_ID_PATTERN}$',
|
|
CourseGradingView.as_view(),
|
|
name="course_grading"
|
|
),
|
|
path(
|
|
'help_urls',
|
|
HelpUrlsView.as_view(),
|
|
name="help_urls"
|
|
),
|
|
re_path(
|
|
fr'^course_rerun/{COURSE_ID_PATTERN}$',
|
|
CourseRerunView.as_view(),
|
|
name="course_rerun"
|
|
),
|
|
|
|
# Authoring API
|
|
# Do not use under v1 yet (Nov. 23). The Authoring API is still experimental and the v0 versions should be used
|
|
]
|