We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da50244 commit 6e4256dCopy full SHA for 6e4256d
days/069-072-django-rest/demo/mysite/urls.py
@@ -1,6 +1,10 @@
1
from django.contrib import admin
2
from django.urls import include, path
3
+from rest_framework.schemas import get_schema_view
4
5
+TITLE = 'Quotes API'
6
+
7
+schema_view = get_schema_view(title=TITLE)
8
9
urlpatterns = [
10
path('', include('quotes.urls')),
@@ -9,4 +13,5 @@
13
path('accounts/', include('django.contrib.auth.urls')),
14
path('api/', include('api.urls')),
11
15
path('api-auth/', include('rest_framework.urls')),
16
+ path('schema/', schema_view),
12
17
]
days/069-072-django-rest/demo/requirements.txt
@@ -1,3 +1,5 @@
django
django-registration
djangorestframework
+coreapi
+pyyaml
0 commit comments