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
e0ed2d8a
Commit
e0ed2d8a
authored
Jun 20, 2015
by
Bertrand Marron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix misleading enrollment API documentation
The user parameter corresponds to the username, not the user ID.
parent
f07e4b9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/djangoapps/enrollment/views.py
+2
-2
No files found.
common/djangoapps/enrollment/views.py
View file @
e0ed2d8a
...
@@ -266,7 +266,7 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
...
@@ -266,7 +266,7 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
**Post Parameters**
**Post Parameters**
* user: The user
ID
of the currently logged in user. Optional. You cannot use the command to enroll a different user.
* user: The user
name
of the currently logged in user. Optional. You cannot use the command to enroll a different user.
* mode: The Course Mode for the enrollment. Individual users cannot upgrade their enrollment mode from
* mode: The Course Mode for the enrollment. Individual users cannot upgrade their enrollment mode from
'honor'. Only server-to-server requests can enroll with other modes. Optional.
'honor'. Only server-to-server requests can enroll with other modes. Optional.
...
@@ -316,7 +316,7 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
...
@@ -316,7 +316,7 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
* invite_only: Whether students must be invited to enroll in the course; true or false.
* invite_only: Whether students must be invited to enroll in the course; true or false.
* user: The
ID
of the user.
* user: The
username
of the user.
"""
"""
authentication_classes
=
OAuth2AuthenticationAllowInactiveUser
,
EnrollmentCrossDomainSessionAuth
authentication_classes
=
OAuth2AuthenticationAllowInactiveUser
,
EnrollmentCrossDomainSessionAuth
...
...
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