2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-11 18:42:29 +00:00

Disable the HTML API explorer

It may be the case that no one uses it.
This commit is contained in:
Jarrod Johnson
2025-05-02 16:21:47 -04:00
parent 57ada3728c
commit d0ae7b46ae

View File

@@ -1091,6 +1091,8 @@ def resourcehandler_backend(env, start_response):
yield e.get_error_body()
def _assemble_html(responses, resource, querydict, url, extension):
yield '<html><body>HTML API Explorer is discontinued, notify developers if you want this back</body></html>'
return
yield '<html><head><meta charset="UTF-8"><title>' \
'Confluent REST Explorer: ' + url + '</title></head>' \
'<body><form action="' + \