Spaces:
Sleeping
Sleeping
Download questionService/urls.py from mohitlahoti2002/djangoServer: direct link, hf CLI and curl.
- Browser
- Download file 920 Bytes
-
https://huggingface.co/spaces/mohitlahoti2002/djangoServer/resolve/main/questionService/urls.py
- Command line
-
hf download hf://spaces/mohitlahoti2002/djangoServer/questionService/urls.py
-
curl -L -o urls.py https://huggingface.co/spaces/mohitlahoti2002/djangoServer/resolve/main/questionService/urls.py
920 Bytes
| from django.urls import path | |
| from .views import TestAPIView, TestAssignmentAPIView, TestResultAPIView, UpdateAssignmentStatusAPIView, TeacherReportsAPIView | |
| urlpatterns = [ | |
| path('tests/', TestAPIView.as_view(), name='test-list-create'), | |
| path('tests/<int:test_id>/', TestAPIView.as_view(), name='test-detail'), | |
| path('assignments/', TestAssignmentAPIView.as_view(), name='test-assignment-list-create'), | |
| path('assignments/<int:assignment_id>/status/', UpdateAssignmentStatusAPIView.as_view(), name='update-assignment-status'), | |
| path('results/', TestResultAPIView.as_view(), name='test-result-list-create'), | |
| path('results/<int:result_id>/', TestResultAPIView.as_view(), name='test-result-detail'), | |
| path('teacher/reports/', TeacherReportsAPIView.as_view(), name='teacher-reports-list'), | |
| path('teacher/reports/<int:result_id>/', TeacherReportsAPIView.as_view(), name='teacher-reports-detail'), | |
| ] |