summaryrefslogtreecommitdiff
path: root/api/urls.py
diff options
context:
space:
mode:
authorprathamesh2019-06-21 03:23:45 +0530
committerprathamesh2019-06-21 03:23:45 +0530
commita7b4b9e0c6699987d1dee4007e9c62da15559432 (patch)
tree7cb2bfe3dcb36f073ad9db1f1b1d3a2f465cd2d0 /api/urls.py
parent81d1e4e4ff4406f7f3823c40a82cf21096f2ccec (diff)
downloadonline_test-a7b4b9e0c6699987d1dee4007e9c62da15559432.tar.gz
online_test-a7b4b9e0c6699987d1dee4007e9c62da15559432.tar.bz2
online_test-a7b4b9e0c6699987d1dee4007e9c62da15559432.zip
Add API to get complete course details and AnswerPaper for the quiz
Courses are retrieved in which the user is a student. Complete course info is made available. Answerpaper is created if does not exists on start quiz. AnswerPaper detail info is made available. If attempts are not allowed then the message is retrieved.
Diffstat (limited to 'api/urls.py')
-rw-r--r--api/urls.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/urls.py b/api/urls.py
index 5dfd8c7..22a9b54 100644
--- a/api/urls.py
+++ b/api/urls.py
@@ -7,6 +7,9 @@ urlpatterns = [
url(r'questions/$', views.QuestionList.as_view(), name='questions'),
url(r'questions/(?P<pk>[0-9]+)/$', views.QuestionDetail.as_view(),
name='question'),
+ url(r'get_courses/$', views.CourseList.as_view(), name='get_courses'),
+ url(r'start_quiz/(?P<course_id>[0-9]+)/(?P<quiz_id>[0-9]+)/$', views.StartQuiz.as_view(),
+ name='start_quiz'),
url(r'quizzes/$', views.QuizList.as_view(), name='quizzes'),
url(r'quizzes/(?P<pk>[0-9]+)/$', views.QuizDetail.as_view(), name='quiz'),
url(r'questionpapers/$', views.QuestionPaperList.as_view(),