From ce30cd7b4d9e3e7192702ba1793359f93f7fa275 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 7 May 2018 08:35:40 +1000 Subject: [PATCH] add auto-doc for JSON API --- InvenTree/InvenTree/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/urls.py b/InvenTree/InvenTree/urls.py index 2aa9f8185e..8c1d319531 100644 --- a/InvenTree/InvenTree/urls.py +++ b/InvenTree/InvenTree/urls.py @@ -18,6 +18,7 @@ from django.conf import settings from django.conf.urls.static import static from django.views.generic.base import RedirectView +from rest_framework.documentation import include_docs_urls from users.urls import user_urls @@ -34,7 +35,7 @@ apipatterns = [ 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'^supplier-part/', include(supplier_part_urls)),