From 2461e0701c25a788dfb5ed575139d30dfbcbd743 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 1 Mar 2017 12:46:01 -0500 Subject: [PATCH] Removed swagger api viewer --- app/templates/app/logged_in_base.html | 2 +- app/urls.py | 2 -- requirements.txt | 1 - webodm/settings.py | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/templates/app/logged_in_base.html b/app/templates/app/logged_in_base.html index 34722add..660fdaff 100644 --- a/app/templates/app/logged_in_base.html +++ b/app/templates/app/logged_in_base.html @@ -264,7 +264,7 @@ {% endif %}
  • - {% trans 'API' %} + {% trans 'API' %}
  • {% trans 'Documentation' %} diff --git a/app/urls.py b/app/urls.py index 26fe5eb2..ee02d48c 100644 --- a/app/urls.py +++ b/app/urls.py @@ -1,5 +1,4 @@ from django.conf.urls import url, include -from rest_framework_swagger.views import get_swagger_view from . import views from app.boot import boot @@ -15,7 +14,6 @@ urlpatterns = [ url(r'^processingnode/([\d]+)/$', views.processing_node, name='processing_node'), url(r'^api/', include("app.api.urls")), - url(r'^apiviewer/', get_swagger_view(title='WebODM API')), ] # Test cases call boot() independently diff --git a/requirements.txt b/requirements.txt index b9dc38bb..fecaa9d7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,6 @@ Django==1.10.5 django-debug-toolbar==1.6 django-filter==0.15.3 django-guardian==1.4.6 -django-rest-swagger==2.1.0 django-webpack-loader==0.3.3 djangorestframework==3.5.1 djangorestframework-jwt==1.9.0 diff --git a/webodm/settings.py b/webodm/settings.py index 4ac7fe0f..93a035d8 100644 --- a/webodm/settings.py +++ b/webodm/settings.py @@ -45,7 +45,6 @@ INSTALLED_APPS = [ 'guardian', 'rest_framework', 'rest_framework_nested', - 'rest_framework_swagger', 'webpack_loader', # 'debug_toolbar', 'app',