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 + ]