mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Added API documentation
This commit is contained in:
parent
f7107008f0
commit
bf1c7125a4
@ -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')),
|
||||
]
|
||||
|
@ -1,3 +1,5 @@
|
||||
Django==1.11
|
||||
djangorestframework==3.6.2
|
||||
django_filter==1.0.2
|
||||
coreapi==2.3.0
|
||||
pygments==2.2.0
|
||||
|
Loading…
Reference in New Issue
Block a user