Commit c2420b09 by Sylvia Pearce

Final tweaks to API documentation updates

parent d2b6ac84
...@@ -319,17 +319,16 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn): ...@@ -319,17 +319,16 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
A POST request can include the following parameters. 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. You cannot use the command to enroll a different user.
* mode: The course mode for the enrollment. Individual users * mode: Optional. The course mode for the enrollment. Individual
cannot upgrade their enrollment mode from 'honor'. Only users cannot upgrade their enrollment mode from 'honor'. Only
server-to-server requests can enroll with other modes. server-to-server requests can enroll with other modes.
Optional.
* is_active: A Boolean value indicating whether the enrollment * is_active: Optional. A Boolean value indicating whether the
is active. Only server-to-server requests are allowed to enrollment is active. Only server-to-server requests are
deactivate an enrollment. Optional. allowed to deactivate an enrollment.
* course details: A collection that includes the following * course details: A collection that includes the following
information. information.
...@@ -340,7 +339,8 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn): ...@@ -340,7 +339,8 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
the user wants to receive email from the organization that runs the user wants to receive email from the organization that runs
this course. this course.
* enrollment_attributes: A list of dictionary that contains: * enrollment_attributes: A dictionary that contains the following
values.
* namespace: Namespace of the attribute * namespace: Namespace of the attribute
* name: Name of the attribute * name: Name of the attribute
......
################################################## ###################################
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 * :ref:`Get the user's enrollment status in a course <Get the Users Enrollment
Status in a Course>`. 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>`. Course>`.
* :ref:`View a user's enrollments <View and add to a Users Course * :ref:`View a user's enrollments <View and add to a Users Course
Enrollments>`. Enrollments>`.
...@@ -93,9 +94,9 @@ Get the User's Enrollment Information for a Course ...@@ -93,9 +94,9 @@ Get the User's Enrollment Information for a Course
.. _View and add to a Users Course Enrollments: .. _View and add to a Users Course Enrollments:
********************************************* **********************************************************
View and Add to a User's Course Enrollments View a User's Enrollments or Enroll a User in a Course
********************************************* **********************************************************
.. autoclass:: enrollment.views.EnrollmentListView .. autoclass:: enrollment.views.EnrollmentListView
......
...@@ -34,7 +34,7 @@ The Enrollment API supports the following tasks, methods, and endpoints. ...@@ -34,7 +34,7 @@ The Enrollment API supports the following tasks, methods, and endpoints.
<Get the Users Enrollment Status in a Course>` <Get the Users Enrollment Status in a Course>`
- GET - GET
- /api/enrollment/v1/enrollment/{user_id},{course_id} - /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 Enrollment Details for a Course>`
- GET - GET
- /api/enrollment/v1/course/{course_id} - /api/enrollment/v1/course/{course_id}
......
################################################## ##################################################
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 updates about a course<Get Course Updates>`.
* - :ref:`Get a list of course handouts<Get Course Handouts>`. * :ref:`Get a list of course handouts<Get Course Handouts>`.
.. _Get Course Updates: .. _Get Course Updates:
......
...@@ -8,6 +8,6 @@ Mobile API Version 0.5 ...@@ -8,6 +8,6 @@ Mobile API Version 0.5
:maxdepth: 2 :maxdepth: 2
overview overview
users
course_info course_info
users
video_outlines video_outlines
...@@ -4,29 +4,30 @@ ...@@ -4,29 +4,30 @@
Mobile API Overview Mobile API Overview
################################################ ################################################
Use the Mobile API to build mobile applications for students to Use the Mobile API to build mobile applications for students to view course
view course information and videos for courses on your instance of Open edX. information and videos for courses on your instance of Open edX.
****************************************** ******************************************
Mobile API Version and Status Mobile API Version and Status
****************************************** ******************************************
The Mobile API is currently at version 0.5 and is an Alpha The Mobile API is currently at version 0.5 and is an alpha release. We plan on
release. We plan on making significant enhancements and changes to the API. making significant enhancements and changes to the API.
.. caution:: .. caution::
As this is a new and rapidly evolving API, at this time edX does not guarantee As this is a new and rapidly evolving API, at this time edX does not
forward compatibility. We encourage you to use and experiment with the API, guarantee forward compatibility. We encourage you to use and experiment with
while keeping in mind that endpoints might change. the API, while keeping in mind that endpoints might change.
************************************* *************************************
Mobile API Resources and Endpoints 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:: .. list-table::
...@@ -50,7 +51,7 @@ Mobile User API Resource ...@@ -50,7 +51,7 @@ Mobile User API Resource
- /api/mobile/v0.5/rs/{username}/course_status_info/{course_id} - /api/mobile/v0.5/rs/{username}/course_status_info/{course_id}
======================================== ========================================
Mobile Course Information API Resource Mobile API Course Information Resource
======================================== ========================================
.. list-table:: .. list-table::
...@@ -68,7 +69,7 @@ Mobile Course Information API Resource ...@@ -68,7 +69,7 @@ Mobile Course Information API Resource
- /api/mobile/v0.5/course_info/{organization}/{course_number}/{course_run}/handouts - /api/mobile/v0.5/course_info/{organization}/{course_number}/{course_run}/handouts
===================================== =====================================
Mobile Video Outlines API Resource Mobile API Video Outlines Resource
===================================== =====================================
.. list-table:: .. list-table::
......
#################################### ####################################
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 details about a user<Get User Details>`.
* - :ref:`Get course enrollments for a user<Get a User's Course Enrollments>`. * :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:`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:`Change a user's status in a course<Get or Change User Status in a Course>`.
.. _Get User Details: .. _Get User Details:
......
################################################## ##################################################
Mobile Video Outlines API Mobile API Video Outlines Resource
################################################## ##################################################
This page describes how to use the Mobile Video Outlines API to With the Mobile API **Video Outlines** resource, you can complete the
complete these actions: following tasks.
* `Get the Video List`_ * :ref:`Get a list of all videos in the course <Get the Video List>`.
* `Get a Video Transcript`_ * :ref:`Get a transcript for a specified video and language <Get a Video Transcript>`.
.. _Get the Video List: .. _Get the Video List:
******************* **************************
Get the Video List Get the Course Video List
******************* **************************
.. autoclass:: mobile_api.video_outlines.views.VideoSummaryList .. autoclass:: mobile_api.video_outlines.views.VideoSummaryList
......
.. Profile Images API: .. 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:`Upload a profile image <Upload a Profile Image>`.
* - :ref:`Remove profile images <Remove a Profile Image>`. * :ref:`Remove profile images <Remove a Profile Image>`.
.. _Upload a Profile Image: .. _Upload a Profile Image:
......
.. _User Accounts API: .. _User Accounts API:
################################################## ##################################################
User Accounts API User API User Accounts Resource
################################################## ##################################################
This page contains information on using the User Accounts API to With the User API **User Accounts** resource, you can complete the following
complete the following actions. tasks.
* `Get and Update the User's Account Information`_ * `Get and Update the User's Account Information`_
...@@ -31,7 +31,7 @@ Get and Update the User's Account Information ...@@ -31,7 +31,7 @@ Get and Update the User's Account Information
"name": "John Doe", "name": "John Doe",
"language": "", "language": "",
"gender": "m", "gender": "m",
"year_of_birth": 1997, "year_of_birth": 1987,
"level_of_education": "m", "level_of_education": "m",
"goals": "Professional Development", "goals": "Professional Development",
"country": US, "country": US,
......
.. _User Preferences API: .. _User Preferences API:
################################################## ##################################################
User Preferences API User API User Preferences Resource
################################################## ##################################################
This page contains information on using the User Preferences API to With the User API **User Preferences** resource, you can complete the
complete the following actions. following tasks.
* `Get and Update the User's Preferences Information`_ * `Get and Update the User's Preferences Information`_
* `Get, Update, or Delete a Specific Preference`_ * `Get, Update, or Delete a Specific Preference`_
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment