-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b72f072
commit ee600e1
Showing
33 changed files
with
86 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# open_edx_api_extension | ||
|
||
API extension for Open edX | ||
|
||
Installation: | ||
```bash | ||
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 | ||
```python | ||
INSTALLED_APPS = ( | ||
... | ||
'open_edx_api_extension', | ||
) | ||
``` | ||
|
||
Add in file lms/urls.py | ||
|
||
```python | ||
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: | ||
|
||
```bash | ||
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 |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import os | ||
from setuptools import setup | ||
|
||
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: | ||
README = readme.read() | ||
|
||
# allow setup.py to be run from any path | ||
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) | ||
|
||
setup( | ||
name='open-edx-api-extension', | ||
version='0.1', | ||
packages=['open_edx_api_extension'], | ||
include_package_data=True, | ||
description='API extension for Open edX', | ||
long_description=README, | ||
url='https://github.com/raccoongang/open_edx_api_extension', | ||
author='Aleksey Radchenko', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
'Environment :: Web Environment', | ||
'Framework :: Django', | ||
'Intended Audience :: Developers', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.7', | ||
'Topic :: Internet :: WWW/HTTP', | ||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | ||
], | ||
) |
Binary file not shown.
Binary file not shown.