Answer the question
In order to leave comments, you need to log in
Why doesn't django rest swagger group urls?
Hello
There is a todoist project in which the todo application is connected.
Todo uses viewsets. In todo.urls, all this is registered in the router.
from rest_framework.routers import DefaultRouter
from . import views
router = DefaultRouter()
router.register(r'todos', views.TodoViewSet, basename='todo')
router.register(r'tags', views.TagViewSet, basename='tag')
urlpatterns = router.urls
path('api/', include('todo.urls')),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question