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
568ed781
Commit
568ed781
authored
Apr 23, 2015
by
Mark Hoeber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated enrollment api doc for new response fields
And cleaned up one doctoring
parent
d50ed75f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
57 deletions
+48
-57
common/djangoapps/enrollment/views.py
+4
-4
docs/en_us/platform_api/source/change_log.rst
+5
-0
docs/en_us/platform_api/source/enrollment/enrollment.rst
+39
-53
No files found.
common/djangoapps/enrollment/views.py
View file @
568ed781
...
...
@@ -241,8 +241,8 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
If honor mode is not supported for the course, the request fails and returns the available modes.
A server-to-server call can be used by this command to enroll a user in other modes, such as "verified"
or "professional". If the mode is not suppos
ed for the course, the request will fail and return the
available modes.
or "professional". If the mode is not support
ed for the course, the request will fail and return the
available modes.
**Example Requests**:
...
...
@@ -255,14 +255,14 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
* user: The user ID 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
'honor'. Only server to server requests can enroll with other modes. Optional.
'honor'. Only server to server requests can enroll with other modes. Optional.
* course details: A collection that contains:
* course_id: The unique identifier for the course.
* email_opt_in: A boolean indicating whether the user
wishes to opt into email from the organization running this course. Optional
wishes to opt into email from the organization running this course. Optional.
**Response Values**
...
...
docs/en_us/platform_api/source/change_log.rst
View file @
568ed781
...
...
@@ -12,6 +12,11 @@ Change Log
* - Date
- Change
* - 23 April 2015
- Updated the example responses in :ref:`Get the Users Enrollment Status
in a Course`, :ref:`Get Enrollment Details for a Course`, and :ref:`View
and add to a Users Course Enrollments` to include new
``enrollment_start`` and ``enrollment_end fields``.
* - 2 April 2015
- Added the :ref:`EdX Platform Course Structure API Version 0`, :ref:`edX
Platform Enrollment API Version 1.0` and :ref:`edX Platform User API
...
...
docs/en_us/platform_api/source/enrollment/enrollment.rst
View file @
568ed781
...
...
@@ -33,23 +33,26 @@ Get the User's Enrollment Status in a Course
"mode": "honor",
"is_active": true,
"course_details": {
"course_id": "edX/DemoX/Demo_Course",
"enrollment_end": null,
"course_modes": [
{
"slug": "honor",
"name": "Honor Code Certificate",
"min_price": 0,
"suggested_prices": [],
"currency": "usd",
"expiration_datetime": null,
"description": null
}
],
"enrollment_start": null,
"invite_only": false
},
"user": "staff"
"course_end": "2015-06-30T05:00:00Z",
"course_start": "2015-02-05T05:00:00Z",
"course_modes": [
{
"slug": "honor",
"name": "Honor Code Certificate",
"min_price": 0,
"suggested_prices": [],
"currency": "usd",
"expiration_datetime": null,
"description": null,
"sku": null
}
],
"enrollment_start": "2015-01-01T05:00:00Z",
"enrollment_end": "2015-02-13T05:00:00Z",
"invite_only": false,
"course_id": "edX/DemoX/Demo_Course"
},
"user": "staff"
}
.. _Get Enrollment Details for a Course:
...
...
@@ -70,8 +73,8 @@ Get Enrollment Details for a Course
Allow: GET, HEAD, OPTIONS
{
"course_
id": "edX/DemoX/Demo_Course
",
"
enrollment_end": null
,
"course_
end": "2015-06-30T05:00:00Z
",
"
course_start": "2015-02-05T05:00:00Z"
,
"course_modes": [
{
"slug": "honor",
...
...
@@ -80,11 +83,14 @@ Get Enrollment Details for a Course
"suggested_prices": [],
"currency": "usd",
"expiration_datetime": null,
"description": null
"description": null,
"sku": null
}
],
"enrollment_start": null,
"invite_only": false
"enrollment_start": "2015-01-01T05:00:00Z",
"enrollment_end": "2015-02-13T05:00:00Z",
"invite_only": false,
"course_id": "edX/DemoX/Demo_Course"
}
...
...
@@ -108,12 +114,12 @@ View and Add to a User's Course Enrollments
[
{
"created": "2014-
09-19T18:08:37
Z",
"created": "2014-
11-19T04:06:55
Z",
"mode": "honor",
"is_active": true,
"course_details": {
"course_
id": "edX/DemoX/Demo_Course
",
"
enrollment_end": null
,
"course_
end": "2015-06-30T05:00:00Z
",
"
course_start": "2015-02-05T05:00:00Z"
,
"course_modes": [
{
"slug": "honor",
...
...
@@ -122,37 +128,17 @@ View and Add to a User's Course Enrollments
"suggested_prices": [],
"currency": "usd",
"expiration_datetime": null,
"description": null
"description": null,
"sku": null
}
],
"enrollment_start": null
,
"invite_only": false
}
,
"
user": "honor
"
"enrollment_start": "2015-01-01T05:00:00Z"
,
"enrollment_end": "2015-02-13T05:00:00Z",
"invite_only": false
,
"
course_id": "edX/DemoX/Demo_Course
"
},
{
"created": "2014-09-19T18:09:35Z",
"mode": "honor",
"is_active": true,
"course_details": {
"course_id": "ArbisoftX/BulkyEmail101/2014-15",
"enrollment_end": null,
"course_modes": [
{
"slug": "honor",
"name": "Honor Code Certificate",
"min_price": 0,
"suggested_prices": [],
"currency": "usd",
"expiration_datetime": null,
"description": null
}
],
"enrollment_start": "2014-05-01T04:00:00Z",
"invite_only": false
},
"user": "honor"
}
"user": "staff"
}
]
...
...
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