Commit 43e7fff6 authored by Samuel GAIST's avatar Samuel GAIST

[urls] Update url for REST Framework swagger

parent 02b60707
......@@ -30,6 +30,8 @@ from django.conf import settings
from django.views.generic import TemplateView
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from rest_framework_swagger.views import get_swagger_view
from .ui import urls as ui_urls
from .navigation import urls as navigation_urls
......@@ -38,6 +40,8 @@ from urlparse import urlparse
from django.contrib import admin
admin.autodiscover()
schema_view = get_swagger_view(title='BEAT API')
# Views
unprefixed_patterns = ui_urls.urlpatterns
unprefixed_patterns += navigation_urls.urlpatterns
......@@ -103,7 +107,7 @@ unprefixed_patterns += [
url(r'^admin/', include(admin.site.urls)),
url(r'^docs/',
include('rest_framework_swagger.urls', namespace='docs'),
schema_view
),
url(r'^activity/',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment