From b368c65bb90d88ff30b58dbcd05e35f4fd70f132 Mon Sep 17 00:00:00 2001 From: Dale Smith Date: Mon, 20 Jan 2025 09:17:55 +1300 Subject: [PATCH] Removal of django-rest-swagger The library is end of life and out of date for recent python. This change completes the removal from Adjutant, as was started in I102e94c8172f6ea660814dd8fcd44ed8239b2e67 A viable replacement library may be drf-yasg, and may be implemented in the future. Co-Authored-By: matthewnorthcott@catalystcloud.nz Change-Id: Ifd43db86f801bd16aea358245c0e8a5392e66d55 --- adjutant/settings.py | 1 - api-ref/source/v1-api-reference.rst | 9 --------- requirements.txt | 1 - 3 files changed, 11 deletions(-) diff --git a/adjutant/settings.py b/adjutant/settings.py index 92c34b3..15a9bb7 100644 --- a/adjutant/settings.py +++ b/adjutant/settings.py @@ -39,7 +39,6 @@ INSTALLED_APPS = ( "django.contrib.messages", "django.contrib.staticfiles", "rest_framework", - "rest_framework_swagger", "adjutant.commands", "adjutant.actions", "adjutant.api", diff --git a/api-ref/source/v1-api-reference.rst b/api-ref/source/v1-api-reference.rst index 5858783..2057426 100644 --- a/api-ref/source/v1-api-reference.rst +++ b/api-ref/source/v1-api-reference.rst @@ -82,12 +82,3 @@ Normal response code: 200 .. include:: delegate-apis.inc - -**************************** -Additional API Documentation -**************************** - -While in debug mode the service will supply online browsable documentation via -Django REST Swagger. - -This is viewable at: ../docs diff --git a/requirements.txt b/requirements.txt index 926414f..708dc4e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,6 @@ pbr>=5.2.0 Django>=4.2 Babel>=2.6.0 decorator>=4.4.0 -django-rest-swagger>=2.2.0 djangorestframework>=3.14.0 jsonfield>=2.0.2 keystoneauth1>=3.14.0