This is an automated email from the ASF dual-hosted git repository.
jaimin pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 2487f92 AMBARI-24830. Add datatype option to the SwaggerUi client
being used for api-docs. (jaimin) (#2576)
2487f92 is described below
commit 2487f9249e0be05275397952d55b2aea7d08a4b0
Author: Jetly <[email protected]>
AuthorDate: Tue Nov 6 09:12:01 2018 -0800
AMBARI-24830. Add datatype option to the SwaggerUi client being used for
api-docs. (jaimin) (#2576)
---
ambari-web/api-docs/index.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/ambari-web/api-docs/index.html b/ambari-web/api-docs/index.html
index 1df8f01..7ca418a 100644
--- a/ambari-web/api-docs/index.html
+++ b/ambari-web/api-docs/index.html
@@ -51,6 +51,7 @@
window.swaggerUi = new SwaggerUi({
url: url,
+ dataType: 'json',
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
onComplete: function (swaggerApi, swaggerUi) {