Browse Source

AMBARI-24830. Add datatype option to the SwaggerUi client being used for api-docs. (jaimin) (#2517)

Jetly 7 years ago
parent
commit
a3d245bd81
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ambari-web/api-docs/index.html

+ 1 - 0
ambari-web/api-docs/index.html

@@ -51,6 +51,7 @@
 
 
       window.swaggerUi = new SwaggerUi({
       window.swaggerUi = new SwaggerUi({
         url: url,
         url: url,
+        dataType: 'json',
         dom_id: "swagger-ui-container",
         dom_id: "swagger-ui-container",
         supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
         supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
         onComplete: function (swaggerApi, swaggerUi) {
         onComplete: function (swaggerApi, swaggerUi) {