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

+
{% trans 'OpenAPI' %} | + {% trans 'Site' %} | {% trans 'Fale Conosco' %} + {% else %}