Skip to content

Commit 3e0c54b

Browse files
authored
Merge pull request #23 from shwetagurnani/features/add-swagger
ADD Swagger support and Fix #19
2 parents 337d39e + 81c7479 commit 3e0c54b

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

editor/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
'django.contrib.staticfiles',
5151
'rest_framework',
5252
'rest_framework.authtoken',
53+
'rest_framework_swagger',
5354
'api'
5455
]
5556

editor/urls.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@
1515
"""
1616
from django.contrib import admin
1717
from django.urls import path, include
18+
from django.conf.urls import url
19+
from rest_framework_swagger.views import get_swagger_view
20+
21+
schema_view = get_swagger_view(title='SKF-VideoEditorAPI')
1822

1923
urlpatterns = [
24+
url(r'^$', schema_view),
2025
path('admin/', admin.site.urls),
2126
path('api/', include('api.urls'))
2227
]

requirements.txt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,51 @@ boto3==1.21.13
1010
botocore==1.24.13
1111
certifi==2021.10.8
1212
cffi==1.15.0
13-
charset-normalizer==2.0.8
13+
charset-normalizer==2.0.12
14+
coreapi==2.3.3
15+
coreschema==0.0.4
1416
cryptography==35.0.0
1517
Django==2.2.27
1618
django-appconf==1.0.5
1719
django-base64field==1.0
1820
django-cors-headers==3.10.1
1921
django-cryptography==1.0
22+
django-rest-swagger==2.2.0
2023
django-storages==1.11.1
2124
djangorestframework==3.9.2
2225
et-xmlfile==1.1.0
26+
flake8==4.0.1
2327
idna==3.3
2428
install==1.3.4
2529
isodate==0.6.0
30+
itypes==1.2.0
31+
Jinja2==3.1.1
2632
jmespath==0.10.0
2733
jsonfield==3.1.0
34+
MarkupSafe==2.1.1
35+
mccabe==0.6.1
2836
msrest==0.6.21
2937
mysqlclient==2.1.0
30-
numpy==1.21.3
38+
numpy==1.22.3
3139
oauthlib==3.1.1
40+
openapi-codec==1.3.2
3241
openpyxl==3.0.9
3342
pandas==1.3.4
3443
protobuf==3.17.3
3544
pycodestyle==2.8.0
36-
pycparser==2.20
45+
pycparser==2.21
46+
pyflakes==2.4.0
3747
python-dateutil==2.8.2
3848
pytz==2021.1
3949
pytz-deprecation-shim==0.1.0.post0
4050
requests==2.26.0
4151
requests-oauthlib==1.3.0
4252
s3transfer==0.5.0
53+
simplejson==3.17.6
4354
six==1.16.0
4455
sqlparse==0.4.1
4556
toml==0.10.2
4657
tzdata==2022.1
4758
tzlocal==4.2
59+
uritemplate==4.1.1
4860
urllib3==1.26.7

0 commit comments

Comments
 (0)