Skip to content

examus/open-edx-api-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages