mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-16 17:56:30 +00:00
Added API documentation
This commit is contained in:
@@ -4,6 +4,7 @@ from django.contrib import admin
|
||||
from rest_framework import status
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.decorators import api_view
|
||||
from rest_framework.documentation import include_docs_urls
|
||||
|
||||
admin.site.site_header = "InvenTree Admin"
|
||||
|
||||
@@ -21,6 +22,8 @@ urlpatterns = [
|
||||
# API URL
|
||||
url(r'^api/', include(apipatterns)),
|
||||
|
||||
url(r'^api-doc/', include_docs_urls(title='InvenTree API')),
|
||||
|
||||
url(r'^admin/', admin.site.urls),
|
||||
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
]
|
||||
|
Reference in New Issue
Block a user