<filename>api/assignments/urls.py
from rest_framework.routers import DefaultRouter
from api.views import AssignmentViewSet

router = DefaultRouter()
router.register(r'', AssignmentViewSet, base_name='assignments')
urlpatterns = router.urls

<filename>api/assignments/urls.py
from rest_framework.routers import DefaultRouter
from api.views import AssignmentViewSet

router = DefaultRouter()
router.register(r'', AssignmentViewSet, base_name='assignments')
urlpatterns = router.urls
