diff options
author | CruiseDevice | 2020-03-30 18:55:50 +0530 |
---|---|---|
committer | CruiseDevice | 2020-03-30 18:55:50 +0530 |
commit | 17e77e3d7ba5595a1d24004f886192ea2bb3f600 (patch) | |
tree | 7f767adf84c930dc906a33c1959e56d0e41b4aaa /api/urls.py | |
parent | e8573822d3ed25306d5d2faf946633f2c17997b0 (diff) | |
parent | a7b4b9e0c6699987d1dee4007e9c62da15559432 (diff) | |
download | online_test-17e77e3d7ba5595a1d24004f886192ea2bb3f600.tar.gz online_test-17e77e3d7ba5595a1d24004f886192ea2bb3f600.tar.bz2 online_test-17e77e3d7ba5595a1d24004f886192ea2bb3f600.zip |
Resolve Conflicts
Merge branch 'api' of https://github.com/prathamesh920/online_test into API
Diffstat (limited to 'api/urls.py')
-rw-r--r-- | api/urls.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/api/urls.py b/api/urls.py new file mode 100644 index 0000000..22a9b54 --- /dev/null +++ b/api/urls.py @@ -0,0 +1,27 @@ +from django.conf.urls import url +from rest_framework.urlpatterns import format_suffix_patterns +from api import views + + +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(), + name='questionpapers'), + url(r'questionpapers/(?P<pk>[0-9]+)/$', + views.QuestionPaperDetail.as_view(), name='questionpaper'), + url(r'answerpapers/$', views.AnswerPaperList.as_view(), + name='answerpapers'), + url(r'validate/(?P<answerpaper_id>[0-9]+)/(?P<question_id>[0-9]+)/$', + views.AnswerValidator.as_view(), name='validators'), + url(r'validate/(?P<uid>[0-9]+)/$', + views.AnswerValidator.as_view(), name='validator'), +] + +urlpatterns = format_suffix_patterns(urlpatterns) |