Commit 7a647bd1 authored by Serial Lab's avatar Serial Lab
Browse files

removed old swagger generator for new yasg

parent 7d47a3b1
Pipeline #104435668 failed with stages
in 6 minutes and 45 seconds
......@@ -81,7 +81,7 @@ LOCAL_APPS = [
'allauth',
'rest_auth',
'rest_auth.registration',
'rest_framework_swagger',
'drf_yasg',
'corsheaders',
'django_filters',
'simple_history',
......
......@@ -7,17 +7,30 @@ from rest_framework.schemas import get_schema_view
from qu4rtet.api.renderers import JSONOpenAPIRenderer
from qu4rtet.api import routers
from qu4rtet.api.views import APIRoot
from rest_framework_swagger.views import get_swagger_view
from rest_framework import permissions
from drf_yasg.views import get_schema_view as yasg_get_shemea_view
from drf_yasg import openapi
from quartet_trail.urls import urlpatterns as trail_patterns
schema_view = get_schema_view(title='QU4RTET API',
renderer_classes=[JSONOpenAPIRenderer])
swagger_view = get_swagger_view(title='QU4RTET API')
yasg_schema_view = yasg_get_shemea_view(
openapi.Info(
title="QU4RTET API",
default_version='v1',
description="The QU4RTET API",
),
public=True,
permission_classes=(permissions.AllowAny,),
)
urlpatterns = [
url(r'^$', APIRoot.as_view()),
url(r'^schema/?', schema_view, name='schema'),
url(r'^swagger/?', swagger_view, name='swagger'),
url(r'^swagger(?P<format>\.json|\.yaml)$', yasg_schema_view.without_ui(cache_timeout=0), name='schema-json'),
url(r'^swagger/$', yasg_schema_view.with_ui('swagger', cache_timeout=0), name='swagger'),
url(r'^redoc/$', yasg_schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
url(r'^manifest/', include('quartet_manifest.urls',
namespace='manifest')),
url(r'^capture/', include('quartet_capture.urls',
......
......@@ -21,8 +21,8 @@ chardet==3.0.4 # via requests
click==7.0 # via gs123
collectfast==1.3.1
commonmark==0.9.1 # via epcpyyes
coreapi==2.3.3 # via django-rest-swagger, openapi-codec
coreschema==0.0.4 # via coreapi
coreapi==2.3.3 # via drf-yasg
coreschema==0.0.4 # via coreapi, drf-yasg
cryptography==2.8 # via paramiko
decorator==4.4.1 # via serialbox
defusedxml==0.6.0 # via python3-openid
......@@ -34,13 +34,13 @@ django-extensions==2.2.5
django-filter==2.2.0
django-model-utils==4.0.0
django-rest-auth==0.9.5
django-rest-swagger==2.2.0
django-simple-history==2.8.0
django-storages==1.8
django==3.0.1
djangorestframework-csv==2.1.0 # via serialbox
djangorestframework==3.11.0
docutils==0.15.2 # via botocore, serialbox
drf-yasg==1.17.0
elastic-apm==5.3.2
eparsecis==3.1.0
epcpyyes==2.0.4
......@@ -54,6 +54,7 @@ gunicorn==20.0.4
haikunator==2.1.0 # via quartet-capture
idna==2.8 # via requests
importlib-metadata==1.3.0 # via kombu
inflection==0.3.1 # via drf-yasg
itypes==1.1.0 # via coreapi
jinja2==2.10.3 # via coreschema, epcpyyes
jmespath==0.9.4 # via boto3, botocore
......@@ -64,11 +65,12 @@ markdown==3.1.1
markupsafe==1.1.1 # via jinja2
more-itertools==8.0.2 # via zipp
oauthlib==3.1.0 # via requests-oauthlib
openapi-codec==1.3.2 # via django-rest-swagger
packaging==19.2 # via drf-yasg
paramiko==2.7.1
psycopg2-binary==2.8.4
pycparser==2.19 # via cffi
pynacl==1.3.0 # via paramiko
pyparsing==2.4.5 # via packaging
python-dateutil==2.8.0 # via botocore, faker, quartet-epcis
python3-openid==3.1.0 # via django-allauth
pytz==2019.3
......@@ -85,11 +87,12 @@ raven==6.10.0
regex==2019.12.19 # via awesome-slugify
requests-oauthlib==1.3.0 # via django-allauth
requests==2.22.0 # via coreapi, django-allauth, django-anymail, requests-oauthlib
ruamel.yaml.clib==0.2.0 # via ruamel.yaml
ruamel.yaml==0.16.5 # via drf-yasg
s3transfer==0.2.1 # via boto3
sentry-sdk==0.13.5
serialbox==2.0.1
simplejson==3.17.0 # via django-rest-swagger
six==1.13.0 # via argon2-cffi, bcrypt, cryptography, django-anymail, django-extensions, django-rest-auth, django-simple-history, djangorestframework-csv, faker, pynacl, python-dateutil, serialbox
serialbox==2.0.2
six==1.13.0 # via argon2-cffi, bcrypt, cryptography, django-anymail, django-extensions, django-rest-auth, django-simple-history, djangorestframework-csv, drf-yasg, faker, packaging, pynacl, python-dateutil, serialbox
sqlparse==0.3.0 # via django
text-unidecode==1.3 # via faker
tornado==5.1.1
......@@ -97,11 +100,11 @@ typing-extensions==3.7.4.1 # via collectfast
typing==3.7.4.1 # via collectfast
unicodecsv==0.14.1 # via djangorestframework-csv
unidecode==0.4.21 # via awesome-slugify
uritemplate==3.0.0 # via coreapi
uritemplate==3.0.0 # via coreapi, drf-yasg
urllib3==1.25.7 # via botocore, elastic-apm, requests, sentry-sdk
vine==1.3.0 # via amqp, celery
wheel==0.33.6
zipp==0.6.0 # via importlib-metadata
# The following packages are considered to be unsafe in a requirements file:
# setuptools==42.0.2 # via gunicorn, markdown
# setuptools
......@@ -14,7 +14,7 @@ markdown
djangorestframework
-e git://github.com/rmagee/django-rest-framework-xml.git#egg=djangorestframework-xml
django-rest-auth
django-rest-swagger
drf_yasg
django-allauth
lxml
django-cors-headers
......
......@@ -19,3 +19,4 @@ pip-tools
bumpversion
quartet_tracelink
psycopg2-binary
pip-tools
......@@ -23,8 +23,8 @@ cffi==1.13.2 # via argon2-cffi, bcrypt, cryptography, pynacl
chardet==3.0.4 # via requests
click==7.0 # via gs123, pip-tools
commonmark==0.9.1 # via epcpyyes, recommonmark
coreapi==2.3.3 # via django-rest-swagger, openapi-codec
coreschema==0.0.4 # via coreapi
coreapi==2.3.3 # via drf-yasg
coreschema==0.0.4 # via coreapi, drf-yasg
coverage==5.0
cryptography==2.8 # via paramiko
decorator==4.4.1 # via ipython, serialbox, traitlets
......@@ -38,13 +38,13 @@ django-extensions==2.2.5
django-filter==2.2.0
django-model-utils==4.0.0
django-rest-auth==0.9.5
django-rest-swagger==2.2.0
django-simple-history==2.8.0
django-test-plus==1.4.0
django==3.0.1
djangorestframework-csv==2.1.0 # via serialbox
djangorestframework==3.11.0
docutils==0.15.2 # via recommonmark, serialbox, sphinx
drf-yasg==1.17.0
eparsecis==3.1.0
epcpyyes==2.0.4
factory-boy==2.12.0
......@@ -55,6 +55,7 @@ haikunator==2.1.0 # via quartet-capture
idna==2.8 # via requests
imagesize==1.1.0 # via sphinx
importlib-metadata==1.3.0 # via kombu, pluggy, pytest
inflection==0.3.1 # via drf-yasg
ipdb==0.12.3
ipython-genutils==0.2.0 # via traitlets
ipython==7.10.2 # via ipdb
......@@ -68,8 +69,7 @@ markdown==3.1.1
markupsafe==1.1.1 # via jinja2
more-itertools==8.0.2 # via pytest, zipp
oauthlib==3.1.0 # via requests-oauthlib
openapi-codec==1.3.2 # via django-rest-swagger
packaging==19.2 # via pytest, pytest-sugar
packaging==19.2 # via drf-yasg, pytest, pytest-sugar
paramiko==2.7.1
parso==0.5.2 # via jedi
pexpect==4.7.0 # via ipython
......@@ -104,9 +104,10 @@ recommonmark==0.6.0
regex==2019.12.19 # via awesome-slugify
requests-oauthlib==1.3.0 # via django-allauth
requests==2.22.0 # via coreapi, django-allauth, requests-oauthlib
serialbox==2.0.1
simplejson==3.17.0 # via django-rest-swagger
six==1.13.0 # via argon2-cffi, bcrypt, cryptography, django-coverage-plugin, django-extensions, django-rest-auth, django-simple-history, djangorestframework-csv, faker, packaging, pip-tools, pynacl, python-dateutil, serialbox, sphinx, traitlets
ruamel.yaml.clib==0.2.0 # via ruamel.yaml
ruamel.yaml==0.16.5 # via drf-yasg
serialbox==2.0.2
six==1.13.0 # via argon2-cffi, bcrypt, cryptography, django-coverage-plugin, django-extensions, django-rest-auth, django-simple-history, djangorestframework-csv, drf-yasg, faker, packaging, pip-tools, pynacl, python-dateutil, serialbox, sphinx, traitlets
snowballstemmer==2.0.0 # via sphinx
sphinx-rtd-theme==0.4.3
sphinx==1.4.8
......@@ -117,7 +118,7 @@ tornado==5.1.1
traitlets==4.3.3 # via ipython
unicodecsv==0.14.1 # via djangorestframework-csv
unidecode==0.4.21 # via awesome-slugify
uritemplate==3.0.0 # via coreapi
uritemplate==3.0.0 # via coreapi, drf-yasg
urllib3==1.25.7 # via requests
vine==1.3.0 # via amqp, celery
wcwidth==0.1.7 # via prompt-toolkit, pytest
......@@ -126,4 +127,4 @@ wheel==0.33.6
zipp==0.6.0 # via importlib-metadata
# The following packages are considered to be unsafe in a requirements file:
# setuptools==42.0.2 # via ipdb, ipython, markdown
# setuptools
......@@ -21,8 +21,8 @@ chardet==3.0.4 # via requests
click==7.0 # via gs123
collectfast==1.3.1
commonmark==0.9.1 # via epcpyyes
coreapi==2.3.3 # via django-rest-swagger, openapi-codec
coreschema==0.0.4 # via coreapi
coreapi==2.3.3 # via drf-yasg
coreschema==0.0.4 # via coreapi, drf-yasg
cryptography==2.8 # via paramiko
decorator==4.4.1 # via serialbox
defusedxml==0.6.0 # via python3-openid
......@@ -34,13 +34,13 @@ django-extensions==2.2.5
django-filter==2.2.0
django-model-utils==4.0.0
django-rest-auth==0.9.5
django-rest-swagger==2.2.0
django-simple-history==2.8.0
django-storages==1.8
django==3.0.1
djangorestframework-csv==2.1.0 # via serialbox
djangorestframework==3.11.0
docutils==0.15.2 # via botocore, serialbox
drf-yasg==1.17.0
elastic-apm==5.3.2
eparsecis==3.1.0
epcpyyes==2.0.4
......@@ -54,6 +54,7 @@ gunicorn==20.0.4
haikunator==2.1.0 # via quartet-capture
idna==2.8 # via requests
importlib-metadata==1.3.0 # via kombu
inflection==0.3.1 # via drf-yasg
itypes==1.1.0 # via coreapi
jinja2==2.10.3 # via coreschema, epcpyyes
jmespath==0.9.4 # via boto3, botocore
......@@ -64,11 +65,12 @@ markdown==3.1.1
markupsafe==1.1.1 # via jinja2
more-itertools==8.0.2 # via zipp
oauthlib==3.1.0 # via requests-oauthlib
openapi-codec==1.3.2 # via django-rest-swagger
packaging==19.2 # via drf-yasg
paramiko==2.7.1
psycopg2-binary==2.8.4
pycparser==2.19 # via cffi
pynacl==1.3.0 # via paramiko
pyparsing==2.4.5 # via packaging
python-dateutil==2.8.0 # via botocore, faker, quartet-epcis
python3-openid==3.1.0 # via django-allauth
pytz==2019.3
......@@ -85,11 +87,12 @@ raven==6.10.0
regex==2019.12.19 # via awesome-slugify
requests-oauthlib==1.3.0 # via django-allauth
requests==2.22.0 # via coreapi, django-allauth, django-anymail, requests-oauthlib
ruamel.yaml.clib==0.2.0 # via ruamel.yaml
ruamel.yaml==0.16.5 # via drf-yasg
s3transfer==0.2.1 # via boto3
sentry-sdk==0.13.5
serialbox==2.0.1
simplejson==3.17.0 # via django-rest-swagger
six==1.13.0 # via argon2-cffi, bcrypt, cryptography, django-anymail, django-extensions, django-rest-auth, django-simple-history, djangorestframework-csv, faker, pynacl, python-dateutil, serialbox
serialbox==2.0.2
six==1.13.0 # via argon2-cffi, bcrypt, cryptography, django-anymail, django-extensions, django-rest-auth, django-simple-history, djangorestframework-csv, drf-yasg, faker, packaging, pynacl, python-dateutil, serialbox
sqlparse==0.3.0 # via django
text-unidecode==1.3 # via faker
tornado==5.1.1
......@@ -97,11 +100,11 @@ typing-extensions==3.7.4.1 # via collectfast
typing==3.7.4.1 # via collectfast
unicodecsv==0.14.1 # via djangorestframework-csv
unidecode==0.4.21 # via awesome-slugify
uritemplate==3.0.0 # via coreapi
uritemplate==3.0.0 # via coreapi, drf-yasg
urllib3==1.25.7 # via botocore, elastic-apm, requests, sentry-sdk
vine==1.3.0 # via amqp, celery
wheel==0.33.6
zipp==0.6.0 # via importlib-metadata
# The following packages are considered to be unsafe in a requirements file:
# setuptools==42.0.2 # via gunicorn, markdown
# setuptools
......@@ -19,8 +19,8 @@ cffi==1.13.2 # via argon2-cffi, bcrypt, cryptography, psycopg2cffi,
chardet==3.0.4 # via requests
click==7.0 # via gs123
commonmark==0.9.1 # via epcpyyes
coreapi==2.3.3 # via django-rest-swagger, openapi-codec
coreschema==0.0.4 # via coreapi
coreapi==2.3.3 # via drf-yasg
coreschema==0.0.4 # via coreapi, drf-yasg
coverage==5.0
cryptography==2.8 # via paramiko
decorator==4.4.1 # via serialbox
......@@ -34,13 +34,13 @@ django-extensions==2.2.5
django-filter==2.2.0
django-model-utils==4.0.0
django-rest-auth==0.9.5
django-rest-swagger==2.2.0
django-simple-history==2.8.0
django-test-plus==1.4.0
django==3.0.1
djangorestframework-csv==2.1.0 # via serialbox
djangorestframework==3.11.0
docutils==0.15.2 # via serialbox
drf-yasg==1.17.0
entrypoints==0.3 # via flake8
eparsecis==3.1.0
epcpyyes==2.0.4
......@@ -52,6 +52,7 @@ gs123==1.2.0
haikunator==2.1.0 # via quartet-capture
idna==2.8 # via requests
importlib-metadata==1.3.0 # via kombu, pluggy, pytest
inflection==0.3.1 # via drf-yasg
itypes==1.1.0 # via coreapi
jinja2==2.10.3 # via coreschema, epcpyyes
kombu==4.6.7 # via celery
......@@ -62,8 +63,7 @@ markupsafe==1.1.1 # via jinja2
mccabe==0.6.1 # via flake8
more-itertools==8.0.2 # via pytest, zipp
oauthlib==3.1.0 # via requests-oauthlib
openapi-codec==1.3.2 # via django-rest-swagger
packaging==19.2 # via pytest, pytest-sugar
packaging==19.2 # via drf-yasg, pytest, pytest-sugar
paramiko==2.7.1
pluggy==0.13.1 # via pytest
psycopg2cffi==2.8.1
......@@ -91,16 +91,17 @@ random-flavorpack==2.0.1
regex==2019.12.19 # via awesome-slugify
requests-oauthlib==1.3.0 # via django-allauth
requests==2.22.0 # via coreapi, django-allauth, requests-oauthlib
serialbox==2.0.1
simplejson==3.17.0 # via django-rest-swagger
six==1.13.0 # via argon2-cffi, bcrypt, cryptography, django-coverage-plugin, django-extensions, django-rest-auth, django-simple-history, djangorestframework-csv, faker, packaging, psycopg2cffi, pynacl, python-dateutil, serialbox
ruamel.yaml.clib==0.2.0 # via ruamel.yaml
ruamel.yaml==0.16.5 # via drf-yasg
serialbox==2.0.2
six==1.13.0 # via argon2-cffi, bcrypt, cryptography, django-coverage-plugin, django-extensions, django-rest-auth, django-simple-history, djangorestframework-csv, drf-yasg, faker, packaging, psycopg2cffi, pynacl, python-dateutil, serialbox
sqlparse==0.3.0 # via django, django-debug-toolbar
termcolor==1.1.0 # via pytest-sugar
text-unidecode==1.3 # via faker
tornado==5.1.1
unicodecsv==0.14.1 # via djangorestframework-csv
unidecode==0.4.21 # via awesome-slugify
uritemplate==3.0.0 # via coreapi
uritemplate==3.0.0 # via coreapi, drf-yasg
urllib3==1.25.7 # via requests
vine==1.3.0 # via amqp, celery
wcwidth==0.1.7 # via pytest
......@@ -108,4 +109,4 @@ wheel==0.33.6
zipp==0.6.0 # via importlib-metadata
# The following packages are considered to be unsafe in a requirements file:
# setuptools==42.0.2 # via markdown
# setuptools
......@@ -35,10 +35,10 @@ quartet-output==3.0.0
quartet-templates==2.0.0
quartet-trail==2.0.0
random-flavorpack==2.0.1
serialbox==2.0.1
serialbox==2.0.2
six==1.13.0 # via djangorestframework-csv, python-dateutil, serialbox
sqlparse==0.3.0 # via django
unicodecsv==0.14.1 # via djangorestframework-csv
# The following packages are considered to be unsafe in a requirements file:
# setuptools==42.0.2 # via markdown
# setuptools
......@@ -19,8 +19,8 @@ cffi==1.13.2 # via argon2-cffi, bcrypt, cryptography, pynacl
chardet==3.0.4 # via requests
click==7.0 # via gs123
commonmark==0.9.1 # via epcpyyes
coreapi==2.3.3 # via django-rest-swagger, openapi-codec
coreschema==0.0.4 # via coreapi
coreapi==2.3.3 # via drf-yasg
coreschema==0.0.4 # via coreapi, drf-yasg
coverage==5.0
cryptography==2.8 # via paramiko
decorator==4.4.1 # via serialbox
......@@ -34,13 +34,13 @@ django-extensions==2.2.5
django-filter==2.2.0
django-model-utils==4.0.0
django-rest-auth==0.9.5
django-rest-swagger==2.2.0
django-simple-history==2.8.0
django-test-plus==1.4.0
django==3.0.1
djangorestframework-csv==2.1.0 # via serialbox
djangorestframework==3.11.0
docutils==0.15.2 # via serialbox
drf-yasg==1.17.0
entrypoints==0.3 # via flake8
eparsecis==3.1.0
epcpyyes==2.0.4
......@@ -52,6 +52,7 @@ gs123==1.2.0
haikunator==2.1.0 # via quartet-capture
idna==2.8 # via requests
importlib-metadata==1.3.0 # via kombu, pluggy, pytest
inflection==0.3.1 # via drf-yasg
itypes==1.1.0 # via coreapi
jinja2==2.10.3 # via coreschema, epcpyyes
kombu==4.6.7 # via celery
......@@ -62,8 +63,7 @@ markupsafe==1.1.1 # via jinja2
mccabe==0.6.1 # via flake8
more-itertools==8.0.2 # via pytest, zipp
oauthlib==3.1.0 # via requests-oauthlib
openapi-codec==1.3.2 # via django-rest-swagger
packaging==19.2 # via pytest, pytest-sugar
packaging==19.2 # via drf-yasg, pytest, pytest-sugar
paramiko==2.7.1
pluggy==0.13.1 # via pytest
psycopg2-binary==2.8.4
......@@ -91,16 +91,17 @@ random-flavorpack==2.0.1
regex==2019.12.19 # via awesome-slugify
requests-oauthlib==1.3.0 # via django-allauth
requests==2.22.0 # via coreapi, django-allauth, requests-oauthlib
serialbox==2.0.1
simplejson==3.17.0 # via django-rest-swagger
six==1.13.0 # via argon2-cffi, bcrypt, cryptography, django-coverage-plugin, django-extensions, django-rest-auth, django-simple-history, djangorestframework-csv, faker, packaging, pynacl, python-dateutil, serialbox
ruamel.yaml.clib==0.2.0 # via ruamel.yaml
ruamel.yaml==0.16.5 # via drf-yasg
serialbox==2.0.2
six==1.13.0 # via argon2-cffi, bcrypt, cryptography, django-coverage-plugin, django-extensions, django-rest-auth, django-simple-history, djangorestframework-csv, drf-yasg, faker, packaging, pynacl, python-dateutil, serialbox
sqlparse==0.3.0 # via django, django-debug-toolbar
termcolor==1.1.0 # via pytest-sugar
text-unidecode==1.3 # via faker
tornado==5.1.1
unicodecsv==0.14.1 # via djangorestframework-csv
unidecode==0.4.21 # via awesome-slugify
uritemplate==3.0.0 # via coreapi
uritemplate==3.0.0 # via coreapi, drf-yasg
urllib3==1.25.7 # via requests
vine==1.3.0 # via amqp, celery
wcwidth==0.1.7 # via pytest
......@@ -108,4 +109,4 @@ wheel==0.33.6
zipp==0.6.0 # via importlib-metadata
# The following packages are considered to be unsafe in a requirements file:
# setuptools==42.0.2 # via markdown
# setuptools
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment