mirror of
https://github.com/ansible/awx.git
synced 2026-04-03 01:05:14 -02:30
Remove custom docs endpoint in DAB now (#16204)
* Remove custom docs endpoint in DAB now
This commit is contained in:
@@ -148,18 +148,12 @@ v2_urls = [
|
|||||||
|
|
||||||
app_name = 'api'
|
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 = [
|
urlpatterns = [
|
||||||
re_path(r'^$', ApiRootView.as_view(), name='api_root_view'),
|
re_path(r'^$', ApiRootView.as_view(), name='api_root_view'),
|
||||||
re_path(r'^(?P<version>(v2))/', include(v2_urls)),
|
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'^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'),
|
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)
|
# the docs/, schema-related endpoints used to be listed here but now exposed by DAB api_documentation app
|
||||||
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'),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
from awx.api.urls.debug import urls as debug_urls
|
from awx.api.urls.debug import urls as debug_urls
|
||||||
|
|||||||
Reference in New Issue
Block a user