Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
0f09abe2
Commit
0f09abe2
authored
Jul 16, 2013
by
Miles Steele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
factor out urls to instructor.views.api_urls
parent
7392a888
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
25 deletions
+35
-25
lms/djangoapps/instructor/views/api_urls.py
+33
-0
lms/urls.py
+2
-25
No files found.
lms/djangoapps/instructor/views/api_urls.py
0 → 100644
View file @
0f09abe2
"""
Instructor API endpoint urls.
"""
from
django.conf.urls
import
patterns
,
url
urlpatterns
=
patterns
(
''
,
# nopep8
url
(
r'^students_update_enrollment$'
,
'instructor.views.api.students_update_enrollment'
,
name
=
"students_update_enrollment"
),
url
(
r'^list_course_role_members$'
,
'instructor.views.api.list_course_role_members'
,
name
=
"list_course_role_members"
),
url
(
r'^modify_access$'
,
'instructor.views.api.modify_access'
,
name
=
"modify_access"
),
url
(
r'^get_grading_config$'
,
'instructor.views.api.get_grading_config'
,
name
=
"get_grading_config"
),
url
(
r'^get_students_features(?P<csv>/csv)?$'
,
'instructor.views.api.get_students_features'
,
name
=
"get_students_features"
),
url
(
r'^get_distribution$'
,
'instructor.views.api.get_distribution'
,
name
=
"get_distribution"
),
url
(
r'^get_student_progress_url$'
,
'instructor.views.api.get_student_progress_url'
,
name
=
"get_student_progress_url"
),
url
(
r'^reset_student_attempts$'
,
'instructor.views.api.reset_student_attempts'
,
name
=
"reset_student_attempts"
),
url
(
r'^rescore_problem$'
,
'instructor.views.api.rescore_problem'
,
name
=
"rescore_problem"
),
url
(
r'^list_instructor_tasks$'
,
'instructor.views.api.list_instructor_tasks'
,
name
=
"list_instructor_tasks"
),
url
(
r'^list_forum_members$'
,
'instructor.views.api.list_forum_members'
,
name
=
"list_forum_members"
),
url
(
r'^update_forum_role_membership$'
,
'instructor.views.api.update_forum_role_membership'
,
name
=
"update_forum_role_membership"
),
)
lms/urls.py
View file @
0f09abe2
...
...
@@ -345,31 +345,8 @@ if settings.COURSEWARE_ENABLED and settings.MITX_FEATURES.get('ENABLE_INSTRUCTOR
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard$'
,
'instructor.views.instructor_dashboard.instructor_dashboard_2'
,
name
=
"instructor_dashboard_2"
),
# api endpoints for instructor
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/students_update_enrollment$'
,
'instructor.views.api.students_update_enrollment'
,
name
=
"students_update_enrollment"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/list_course_role_members$'
,
'instructor.views.api.list_course_role_members'
,
name
=
"list_course_role_members"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/modify_access$'
,
'instructor.views.api.modify_access'
,
name
=
"modify_access"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/get_grading_config$'
,
'instructor.views.api.get_grading_config'
,
name
=
"get_grading_config"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/get_students_features(?P<csv>/csv)?$'
,
'instructor.views.api.get_students_features'
,
name
=
"get_students_features"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/get_distribution$'
,
'instructor.views.api.get_distribution'
,
name
=
"get_distribution"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/get_student_progress_url$'
,
'instructor.views.api.get_student_progress_url'
,
name
=
"get_student_progress_url"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/reset_student_attempts$'
,
'instructor.views.api.reset_student_attempts'
,
name
=
"reset_student_attempts"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/rescore_problem$'
,
'instructor.views.api.rescore_problem'
,
name
=
"rescore_problem"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/list_instructor_tasks$'
,
'instructor.views.api.list_instructor_tasks'
,
name
=
"list_instructor_tasks"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/list_forum_members$'
,
'instructor.views.api.list_forum_members'
,
name
=
"list_forum_members"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/update_forum_role_membership$'
,
'instructor.views.api.update_forum_role_membership'
,
name
=
"update_forum_role_membership"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard/api/'
,
include
(
'instructor.views.api_urls'
))
)
if
settings
.
ENABLE_JASMINE
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment