Grades REST Api for Open edX
WARNING: This Django application makes no sense on its own as it depends on edx-platform.
Add the application to INSTALLED_APPS
setting :
INSTALLED_APPS = (
...
'grades_api',
...
)
Add URLs entries:
urlpatterns = patterns('',
...
url('^api/grades_api/', include('grades_api.urls', namespace='grades_api'))
...
)
Retrieves the grade for the authenticated user for the course identified by course_id
.
Example request:
GET /api/grades_api/v1/grades/org/num/rev
{
"username": "staff",
"course_id": "org/num/rev",
"percentage": 0.67
}
Retrieves the grade for the user matching the username
for the course identified by course_id
.
The requesting user has to either be is_staff
or username
.
AGPL.