This is an automated email from the ASF dual-hosted git repository.
oleewere pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new a3d245b AMBARI-24830. Add datatype option to the SwaggerUi client
being used for api-docs. (jaimin) (#2517)
a3d245b is described below
commit a3d245bd8197a4e29df75ef378a161dde4805d59
Author: Jetly <[email protected]>
AuthorDate: Fri Oct 26 11:22:02 2018 -0700
AMBARI-24830. Add datatype option to the SwaggerUi client being used for
api-docs. (jaimin) (#2517)
---
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) {