From d7eb7148594a86ddc3cabfde30fa872909cc34d8 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Tue, 16 Dec 2025 13:57:27 -0500 Subject: [PATCH] Remove custom docs endpoint in DAB now (#16204) * Remove custom docs endpoint in DAB now --- awx/api/urls/urls.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/awx/api/urls/urls.py b/awx/api/urls/urls.py index c58a9d3cef..cfa23c7c73 100644 --- a/awx/api/urls/urls.py +++ b/awx/api/urls/urls.py @@ -148,18 +148,12 @@ v2_urls = [ app_name = 'api' -# Import schema views (needed for both development and testing) -from awx.api.schema import schema_view, swagger_ui_view, redoc_view - urlpatterns = [ re_path(r'^$', ApiRootView.as_view(), name='api_root_view'), re_path(r'^(?P(v2))/', include(v2_urls)), re_path(r'^login/$', LoggedLoginView.as_view(template_name='rest_framework/login.html', extra_context={'inside_login_context': True}), name='login'), re_path(r'^logout/$', LoggedLogoutView.as_view(next_page='/api/', redirect_field_name='next'), name='logout'), - # Schema endpoints (available in all modes for API documentation and testing) - re_path(r'^schema/$', schema_view, name='schema-json'), - re_path(r'^docs/$', swagger_ui_view, name='schema-swagger-ui'), - re_path(r'^redoc/$', redoc_view, name='schema-redoc'), + # the docs/, schema-related endpoints used to be listed here but now exposed by DAB api_documentation app ] from awx.api.urls.debug import urls as debug_urls