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
c2420b09
Commit
c2420b09
authored
Jul 15, 2015
by
Sylvia Pearce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final tweaks to API documentation updates
parent
d2b6ac84
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
62 additions
and
58 deletions
+62
-58
common/djangoapps/enrollment/views.py
+8
-8
docs/en_us/platform_api/source/enrollment/enrollment.rst
+9
-8
docs/en_us/platform_api/source/enrollment/overview.rst
+1
-1
docs/en_us/platform_api/source/mobile/course_info.rst
+5
-4
docs/en_us/platform_api/source/mobile/index.rst
+1
-1
docs/en_us/platform_api/source/mobile/overview.rst
+12
-11
docs/en_us/platform_api/source/mobile/users.rst
+6
-6
docs/en_us/platform_api/source/mobile/video_outlines.rst
+8
-8
docs/en_us/platform_api/source/profile_images/profile_images.rst
+5
-4
docs/en_us/platform_api/source/user/accounts.rst
+4
-4
docs/en_us/platform_api/source/user/preferences.rst
+3
-3
No files found.
common/djangoapps/enrollment/views.py
View file @
c2420b09
...
...
@@ -319,17 +319,16 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
A POST request can include the following parameters.
* user:
The username of the currently logged in user. Optional
.
* user:
Optional. The username of the currently logged in user
.
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
* mode:
Optional. 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.
* is_active:
A Boolean value indicating whether the enrollment
is active. Only server-to-server requests are allowed to
deactivate an enrollment. Optional
.
* is_active:
Optional. A Boolean value indicating whether the
enrollment is active. Only server-to-server requests are
allowed to deactivate an enrollment
.
* course details: A collection that includes the following
information.
...
...
@@ -340,7 +339,8 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
the user wants to receive email from the organization that runs
this course.
* enrollment_attributes: A list of dictionary that contains:
* enrollment_attributes: A dictionary that contains the following
values.
* namespace: Namespace of the attribute
* name: Name of the attribute
...
...
docs/en_us/platform_api/source/enrollment/enrollment.rst
View file @
c2420b09
###################################
###############
Enrollment API
###################################
###############
###################################
Enrollment API
Enrollment Resource
###################################
You can use the Enrollment API to complete the following tasks.
With the Enrollment API **Enrollment** resource, you can complete the
following tasks.
* :ref:`Get the user's enrollment status in a course <Get the Users Enrollment
Status in a Course>`.
* :ref:`Get
enrollment details
for a course<Get Enrollment Details for a
* :ref:`Get
the user's enrollment information
for a course<Get Enrollment Details for a
Course>`.
* :ref:`View a user's enrollments <View and add to a Users Course
Enrollments>`.
...
...
@@ -93,9 +94,9 @@ Get the User's Enrollment Information for a Course
.. _View and add to a Users Course Enrollments:
*********************************************
View a
nd Add to a User's Course Enrollments
*********************************************
*********************************************
*************
View a
User's Enrollments or Enroll a User in a Course
*********************************************
*************
.. autoclass:: enrollment.views.EnrollmentListView
...
...
docs/en_us/platform_api/source/enrollment/overview.rst
View file @
c2420b09
...
...
@@ -34,7 +34,7 @@ The Enrollment API supports the following tasks, methods, and endpoints.
<Get the Users Enrollment Status in a Course>`
- GET
- /api/enrollment/v1/enrollment/{user_id},{course_id}
* - :ref:`Get
enrollment details
for a course
* - :ref:`Get
the user's enrollment information
for a course
<Get Enrollment Details for a Course>`
- GET
- /api/enrollment/v1/course/{course_id}
...
...
docs/en_us/platform_api/source/mobile/course_info.rst
View file @
c2420b09
##################################################
Mobile
Course Information API
Resource
Mobile
API Course Information
Resource
##################################################
With the Mobile Course Information API resource, you can complete the following tasks.
With the Mobile API **Course Information** resource, you can complete the
following tasks.
*
-
:ref:`Get updates about a course<Get Course Updates>`.
*
-
:ref:`Get a list of course handouts<Get Course Handouts>`.
* :ref:`Get updates about a course<Get Course Updates>`.
* :ref:`Get a list of course handouts<Get Course Handouts>`.
.. _Get Course Updates:
...
...
docs/en_us/platform_api/source/mobile/index.rst
View file @
c2420b09
...
...
@@ -8,6 +8,6 @@ Mobile API Version 0.5
:maxdepth: 2
overview
users
course_info
users
video_outlines
docs/en_us/platform_api/source/mobile/overview.rst
View file @
c2420b09
...
...
@@ -4,29 +4,30 @@
Mobile API Overview
################################################
Use the Mobile API to build mobile applications for students to
view course
information and videos for courses on your instance of Open edX.
Use the Mobile API to build mobile applications for students to
view course
information and videos for courses on your instance of Open edX.
******************************************
Mobile API Version and Status
******************************************
The Mobile API is currently at version 0.5 and is an
Alpha
release. We plan on
making significant enhancements and changes to the API.
The Mobile API is currently at version 0.5 and is an
alpha release. We plan on
making significant enhancements and changes to the API.
.. caution::
As this is a new and rapidly evolving API, at this time edX does not
guarantee
forward compatibility. We encourage you to use and experiment with the API,
while keeping in mind that endpoints might change.
As this is a new and rapidly evolving API, at this time edX does not
guarantee forward compatibility. We encourage you to use and experiment with
the API,
while keeping in mind that endpoints might change.
*************************************
Mobile API Resources and Endpoints
*************************************
The Mobile API supports the following resources, tasks, methods, and endpoints.
The Mobile API supports the following resources, tasks, methods, and
endpoints.
========================
Mobile
User API
Resource
Mobile
API User
Resource
========================
.. list-table::
...
...
@@ -50,7 +51,7 @@ Mobile User API Resource
- /api/mobile/v0.5/rs/{username}/course_status_info/{course_id}
========================================
Mobile
Course Information API
Resource
Mobile
API Course Information
Resource
========================================
.. list-table::
...
...
@@ -68,7 +69,7 @@ Mobile Course Information API Resource
- /api/mobile/v0.5/course_info/{organization}/{course_number}/{course_run}/handouts
=====================================
Mobile
Video Outlines API
Resource
Mobile
API Video Outlines
Resource
=====================================
.. list-table::
...
...
docs/en_us/platform_api/source/mobile/users.rst
View file @
c2420b09
####################################
Mobile
User API
Mobile
API User Resource
####################################
With the Mobile
User API
resource, you can complete the following tasks.
With the Mobile
API **User**
resource, you can complete the following tasks.
*
-
:ref:`Get details about a user<Get User Details>`.
*
-
:ref:`Get course enrollments for a user<Get a User's Course Enrollments>`.
*
-
:ref:`Get a user's status in a course<Get or Change User Status in a Course>`.
*
-
:ref:`Change a user's status in a course<Get or Change User Status in a Course>`.
* :ref:`Get details about a user<Get User Details>`.
* :ref:`Get course enrollments for a user<Get a User's Course Enrollments>`.
* :ref:`Get a user's status in a course<Get or Change User Status in a Course>`.
* :ref:`Change a user's status in a course<Get or Change User Status in a Course>`.
.. _Get User Details:
...
...
docs/en_us/platform_api/source/mobile/video_outlines.rst
View file @
c2420b09
##################################################
Mobile
Video Outlines API
Mobile
API Video Outlines Resource
##################################################
This page describes how to use the Mobile Video Outlines API to
complete these actions:
With the Mobile API **Video Outlines** resource, you can complete the
following tasks.
*
`Get the Video List`_
*
`Get a Video Transcript`_
*
:ref:`Get a list of all videos in the course <Get the Video List>`.
*
:ref:`Get a transcript for a specified video and language <Get a Video Transcript>`.
.. _Get the Video List:
*******************
Get the Video List
*******************
*******************
*******
Get the
Course
Video List
*******************
*******
.. autoclass:: mobile_api.video_outlines.views.VideoSummaryList
...
...
docs/en_us/platform_api/source/profile_images/profile_images.rst
View file @
c2420b09
.. Profile Images API:
##################################################
Profile Images API
Profile Images API
Profile Images Resource
##################################################
You can use the Profile Images API to complete the following tasks.
With the Profile Images API **Profile Images** resource, you can complete the
following tasks.
*
-
:ref:`Upload a profile image <Upload a Profile Image>`.
*
-
:ref:`Remove profile images <Remove a Profile Image>`.
* :ref:`Upload a profile image <Upload a Profile Image>`.
* :ref:`Remove profile images <Remove a Profile Image>`.
.. _Upload a Profile Image:
...
...
docs/en_us/platform_api/source/user/accounts.rst
View file @
c2420b09
.. _User Accounts API:
##################################################
User A
ccounts API
User A
PI User Accounts Resource
##################################################
This page contains information on using the User Accounts API to
complete the following action
s.
With the User API **User Accounts** resource, you can complete the following
task
s.
* `Get and Update the User's Account Information`_
...
...
@@ -31,7 +31,7 @@ Get and Update the User's Account Information
"name": "John Doe",
"language": "",
"gender": "m",
"year_of_birth": 19
9
7,
"year_of_birth": 19
8
7,
"level_of_education": "m",
"goals": "Professional Development",
"country": US,
...
...
docs/en_us/platform_api/source/user/preferences.rst
View file @
c2420b09
.. _User Preferences API:
##################################################
User
Preferences API
User
API User Preferences Resource
##################################################
This page contains information on using the User Preferences API to
complete the following action
s.
With the User API **User Preferences** resource, you can complete the
following task
s.
* `Get and Update the User's Preferences Information`_
* `Get, Update, or Delete a Specific Preference`_
...
...
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