add auto-doc for JSON API

This commit is contained in:
Oliver 2018-05-07 08:35:40 +10:00
parent ee0cbdbb07
commit ce30cd7b4d

View File

@ -18,6 +18,7 @@ from django.conf import settings
from django.conf.urls.static import static from django.conf.urls.static import static
from django.views.generic.base import RedirectView from django.views.generic.base import RedirectView
from rest_framework.documentation import include_docs_urls
from users.urls import user_urls from users.urls import user_urls
@ -34,7 +35,7 @@ apipatterns = [
urlpatterns = [ urlpatterns = [
# url(r'^api-doc/', include_docs_urls(title='InvenTree API')), url(r'^api-doc/', include_docs_urls(title='InvenTree API')),
url(r'^part/', include(part_urls)), url(r'^part/', include(part_urls)),
url(r'^supplier-part/', include(supplier_part_urls)), url(r'^supplier-part/', include(supplier_part_urls)),