Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching from Swagger to the brand new DRF live docs #33

Merged
merged 3 commits into from
Mar 10, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ django-enumfields==0.8.2
django-model-utils==2.2
git+https://github.com/disqus/django-bitfield.git@306ba5#egg=django-bitfield
git+https://github.com/kjagiello/django-money.git@45ea5e#egg=django-money
djangorestframework==3.5.3
django-rest-swagger==2.1.1
djangorestframework==3.6.1
Pillow==2.9.0
pluggy==0.3.0
py==1.4.30
Expand Down
6 changes: 3 additions & 3 deletions src/foobar/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
from django.conf.urls import include, url
from django.contrib import admin

from rest_framework_swagger.views import get_swagger_view
import foobar.views
import rest_framework.urls
from rest_framework.documentation import include_docs_urls

from .rest.urls import router

schema_view = get_swagger_view(title='FooBar API')
API_TITLE = 'FooBar API'

urlpatterns = [
url(r'^api/', include(router.urls, namespace='api')),
url(r'^docs/', schema_view),
url(r'^docs/', include_docs_urls(title=API_TITLE)),
url(r'^api-auth/', include(rest_framework.urls,
namespace='rest_framework')),
url(r'^admin/wallet_management/(?P<obj_id>.+)',
Expand Down