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