Skip to content

raccoongang/open_edx_api_extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

open_edx_api_extension

API extension for Open edX

Installation:

pip install -e git+https://github.com/raccoongang/open_edx_api_extension.git#egg=open_edx_api_extension

Add in file lms/envs/common.py

INSTALLED_APPS = (
    ...
    'open_edx_api_extension',
)

Add in file lms/urls.py

urlpatterns = (
    ...
    url(r'^api/extended/', include('open_edx_api_extension.urls', namespace='api_extension')),
)

There are two API endpoints:

Course list

/api/extended/courses/

NOTE: For use it be sure you set EDX_API_KEY in Open edX LMS environment settings

Example:

 curl -X GET http://<your.lms.domain>/api/extended/courses/?format=json -H 'X-Edx-Api-Key: edx-api-key'

Course User Results

/api/extended/courses/{course_id}/{username}/

This endpoint uses standard oauth access.

Enrollments list

/api/extended/enrollment

Get a list of all courses enrollments. Used EDX_API_KEY for access to this API

See original documentation for other attributes and usage: http://edx-platform-api.readthedocs.org/en/latest/enrollment/enrollment.html#enrollment.views.EnrollmentView

About

API extension for Open edX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages