Remove custom docs endpoint in DAB now (#16204)

* Remove custom docs endpoint in DAB now
This commit is contained in:
Alan Rominger 2025-12-16 13:57:27 -05:00 committed by GitHub
parent 7a58377aff
commit d7eb714859
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<version>(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