From 84db38acc52e0c61ea364f9a62b220c42f7b7223 Mon Sep 17 00:00:00 2001
From: Leandro Roberto
Date: Mon, 6 Sep 2021 21:59:07 -0300
Subject: [PATCH] =?UTF-8?q?add=20link=20para=20OpenAPI=20no=20rodap=C3=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sapl/api/urls.py | 5 ++---
sapl/templates/base.html | 4 ++++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sapl/api/urls.py b/sapl/api/urls.py
index 4a23ca00f..a35390b1e 100644
--- a/sapl/api/urls.py
+++ b/sapl/api/urls.py
@@ -32,12 +32,11 @@ urlpatterns_router = router.urls
urlpatterns_api_doc = [
# Optional UI:
url('^schema/swagger-ui/',
- SpectacularSwaggerView.as_view(url_name='sapl.api:schema_api'), name='swagger-ui'),
+ SpectacularSwaggerView.as_view(url_name='sapl.api:schema_api'), name='swagger_ui_schema_api'),
url('^schema/redoc/',
- SpectacularRedocView.as_view(url_name='sapl.api:schema_api'), name='redoc'),
+ SpectacularRedocView.as_view(url_name='sapl.api:schema_api'), name='redoc_schema_api'),
# YOUR PATTERNS
url('^schema/', SpectacularAPIView.as_view(), name='schema_api'),
-
]
"""if 'drf_yasg' in settings.INSTALLED_APPS:
from drf_yasg import openapi
diff --git a/sapl/templates/base.html b/sapl/templates/base.html
index 25d5f5d8d..57ebe5d64 100644
--- a/sapl/templates/base.html
+++ b/sapl/templates/base.html
@@ -196,6 +196,7 @@
Release: 3.1.162-RC10
+