Skip to content

Commit

Permalink
Switching from Swagger to the brand new DRF live docs (uppsaladatavet…
Browse files Browse the repository at this point in the history
  • Loading branch information
kjagiello authored Mar 10, 2017
1 parent f2ec78a commit cec9114
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ 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
coreapi==2.3.0
Pillow==2.9.0
pluggy==0.3.0
py==1.4.30
Expand Down
1 change: 0 additions & 1 deletion src/foobar/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
# Application definition
INSTALLED_APPS = (
'rest_framework',
'rest_framework_swagger',

'shop',
'wallet',
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

0 comments on commit cec9114

Please sign in to comment.