Open christianmtr opened 5 years ago
I was actually wondering the same.
In my App's urls.py
I'm registering my routes using the DefaultRouter
router = DefaultRouter()
router.register(r'events', views.EventViewSet)
...
urlpatterns = router.urls
In the project's urls.py
I am adding those using the include() function:
urlpatterns = [
path(r'api/v1/', include('youcan.urls')),
...
]
I have a project with two apps. Each app have their
viewsets
andapi_view
's. There are the files:When I open
api-docs/
page only showapi1
routes (api/view_one/
andapi/view_two/
), even usingre_path
instead ofpath
or includingapp2
's routes inapp1.urls
.The endpoints of
app1
andapp2
works fine when I make a request withcurl
.What can I do? I'm missing anything?