From fbe413d8a3ab40a1d430c3befc2decf8daffd4a0 Mon Sep 17 00:00:00 2001 From: wuyue Date: Sun, 1 Jul 2018 19:47:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B7=AF=E7=94=B1=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- requirements.txt | 4 +++- rest_backend/libs/backend/urls.py | 7 +++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0c4ee6a..3c79877 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,8 @@ python manage.py runserver ## 启动 -浏览器访问: http://127.0.0.1:8000/api-docs/ \ No newline at end of file +浏览器访问: http://127.0.0.1:8000/api/docs/ + +## FAQ + +[说明文档](http://wuyue92tree.antio.top/opensource/rest-backend.html#FAQ) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 0b42120..eabc563 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,6 @@ django-debug-toolbar==1.9.1 django-rest-swagger==2.1.2 djangorestframework==3.8.2 djangorestframework-jwt==1.11.0 -Pillow==5.1.0 \ No newline at end of file +django-filter==1.1.0 +Pillow==5.1.0 +git+https://github.com/darklow/django-suit/tarball/v2.git \ No newline at end of file diff --git a/rest_backend/libs/backend/urls.py b/rest_backend/libs/backend/urls.py index 5f3e0f5..5e93654 100644 --- a/rest_backend/libs/backend/urls.py +++ b/rest_backend/libs/backend/urls.py @@ -19,9 +19,12 @@ router = routers.DefaultRouter() +app_name = 'backend' urlpatterns = [ - path('api-auth/', include('rest_framework.urls', namespace='rest_framework')), path('auth/login/', obtain_jwt_token, name='token-login'), - path('api-docs/', schema_view), + path('docs/', schema_view), + + # add api here + ]