瀏覽代碼

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

Jetly 7 年之前
父節點
當前提交
a3d245bd81
共有 1 個文件被更改,包括 1 次插入0 次删除
  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({
         url: url,
+        dataType: 'json',
         dom_id: "swagger-ui-container",
         supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
         onComplete: function (swaggerApi, swaggerUi) {