Skip to content

Commit

Permalink
Ginkgo.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill1194 committed Jun 29, 2018
1 parent b72f072 commit ee600e1
Show file tree
Hide file tree
Showing 33 changed files with 86 additions and 33 deletions.
56 changes: 56 additions & 0 deletions README.md
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 removed __init__.pyc
Binary file not shown.
Binary file removed api_client.pyc
Binary file not shown.
Binary file removed data.pyc
Binary file not shown.
33 changes: 0 additions & 33 deletions edx_release.py.save

This file was deleted.

Binary file removed edx_release.pyc
Binary file not shown.
Binary file removed ficus.pyc
Binary file not shown.
Binary file removed ginkgo.pyc
Binary file not shown.
Binary file removed mixins.pyc
Binary file not shown.
Binary file removed models.pyc
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 removed serializers.pyc
Binary file not shown.
30 changes: 30 additions & 0 deletions setup.py
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 removed signals.pyc
Binary file not shown.
Binary file removed tasks.pyc
Binary file not shown.
Binary file removed tracking.pyc
Binary file not shown.
Binary file removed urls.pyc
Binary file not shown.
Binary file removed utils.pyc
Binary file not shown.
Binary file removed views.pyc
Binary file not shown.

0 comments on commit ee600e1

Please sign in to comment.