This is an automated email from the ASF dual-hosted git repository.

nic pushed a commit to branch document
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/document by this push:
     new 0a03da7  update REST API
0a03da7 is described below

commit 0a03da72e6d6b0ee16a3fe7610d3683d61da9bbe
Author: yaqian.zhang <598593...@qq.com>
AuthorDate: Sat Oct 12 18:02:35 2019 +0800

    update REST API
---
 .../howto/howto_build_cube_with_restapi.cn.md      |   2 +-
 website/_docs/howto/howto_use_restapi.cn.md        | 278 +++++++++++++++++++++
 website/_docs/howto/howto_use_restapi.md           | 278 +++++++++++++++++++++
 website/_docs/install/configuration.cn.md          |   2 +-
 4 files changed, 558 insertions(+), 2 deletions(-)

diff --git a/website/_docs/howto/howto_build_cube_with_restapi.cn.md 
b/website/_docs/howto/howto_build_cube_with_restapi.cn.md
index 9d51627..aeed2e2 100644
--- a/website/_docs/howto/howto_build_cube_with_restapi.cn.md
+++ b/website/_docs/howto/howto_build_cube_with_restapi.cn.md
@@ -50,5 +50,5 @@ Content-Type: application/json;charset=UTF-8
 *   `GET http://localhost:7070/kylin/api/jobs/{job_uuid}`
 *   返回的 `job_status` 代表job的当前状态。
 
-       ## 5.   如果构建任务出现错误,可以重新开始它
+### 5. 如果构建任务出现错误,可以重新开始它
 *   `PUT http://localhost:7070/kylin/api/jobs/{job_uuid}/resume`
diff --git a/website/_docs/howto/howto_use_restapi.cn.md 
b/website/_docs/howto/howto_use_restapi.cn.md
index 38eafa2..4dc13c5 100644
--- a/website/_docs/howto/howto_use_restapi.cn.md
+++ b/website/_docs/howto/howto_use_restapi.cn.md
@@ -13,6 +13,7 @@ This page lists the major RESTful APIs provided by Kylin.
    * [Query](#query)
    * [List queryable tables](#list-queryable-tables)
 * CUBE
+   * [Create cube](#create-cube)
    * [List cubes](#list-cubes)
    * [Get cube](#get-cube)
    * [Get cube descriptor (dimension, measure info, etc)](#get-cube-descriptor)
@@ -22,6 +23,10 @@ This page lists the major RESTful APIs provided by Kylin.
    * [Disable cube](#disable-cube)
    * [Purge cube](#purge-cube)
    * [Delete segment](#delete-segment)
+* MODEL
+   * [Create model](#create-model)
+   * [Get modelDescData](#get-modeldescdata)
+   * [Delete model](#delete-model)
 * JOB
    * [Resume job](#resume-job)
    * [Pause job](#pause-job)
@@ -300,6 +305,38 @@ curl -X POST -H "Authorization: Basic XXXXXXXXX" -H 
"Content-Type: application/j
 
 ***
 
+## Create cube
+`POST /kylin/api/cubes`
+
+#### Request Body
+* cubeDescData - `required` `string` cubeDescData to create
+* cubeName - `required` `string` cubeName to create
+* projectName - `required` `string` projectName to which cube belongs
+
+#### Request Sample
+```
+{
+"cubeDescData":"{\"uuid\": 
\"0ef9b7a8-3929-4dff-b59d-2100aadc8dbf\",\"last_modified\": 0,\"version\": 
\"3.0.0.20500\",\"name\": \"kylin_test_cube\",\"is_draft\": 
false,\"model_name\": \"kylin_sales_model\",\"description\": 
\"\",\"null_string\": null,\"dimensions\": [{\"name\": \"TRANS_ID\",\"table\": 
\"KYLIN_SALES\",\"column\": \"TRANS_ID\",\"derived\": null},{\"name\": 
\"YEAR_BEG_DT\",\"table\": \"KYLIN_CAL_DT\",\"column\": null,\"derived\": 
[\"YEAR_BEG_DT\"]},{\"name\": \"MONTH_BEG_DT\ [...]
+"cubeName":"kylin_test_cube",
+"project":"learn_kylin"
+}
+```
+
+#### Response Sample
+```
+{
+"uuid": "7b3faf69-eca8-cc5f-25f9-49b0f0b5d404",
+"cubeName": "kylin_test_cube",
+"cubeDescData":"{\"uuid\": 
\"0ef9b7a8-3929-4dff-b59d-2100aadc8dbf\",\"last_modified\": 0,\"version\": 
\"3.0.0.20500\",\"name\": \"kylin_test_cube\",\"is_draft\": 
false,\"model_name\": \"kylin_sales_model\",\"description\": 
\"\",\"null_string\": null,\"dimensions\": [{\"name\": \"TRANS_ID\",\"table\": 
\"KYLIN_SALES\",\"column\": \"TRANS_ID\",\"derived\": null},{\"name\": 
\"YEAR_BEG_DT\",\"table\": \"KYLIN_CAL_DT\",\"column\": null,\"derived\": 
[\"YEAR_BEG_DT\"]},{\"name\": \"MONTH_BEG_DT\ [...]
+"streamingData": null,
+"kafkaData": null,
+"successful": true,
+"message": null,
+"project": "learn_kylin",
+"streamingCube": null
+}
+```
+
 ## List cubes
 `GET /kylin/api/cubes`
 
@@ -807,6 +844,244 @@ curl -X PUT -H "Authorization: Basic XXXXXXXXX" -H 
'Content-Type: application/js
 
 ***
 
+## Create Model
+`POST /kylin/api/models`
+
+#### Request Body
+* modelDescData - `required` `string` modelDescData to create
+* modelName - `required` `string` modelName to create
+* projectName - `required` `string` projectName to which model belongs
+
+#### Request Sample
+```
+{
+"modelDescData": "{\"uuid\": 
\"0928468a-9fab-4185-9a14-6f2e7c74823f\",\"last_modified\": 0,\"version\": 
\"3.0.0.20500\",\"name\": \"kylin_test_model\",\"owner\": null,\"is_draft\": 
false,\"description\": \"\",\"fact_table\": 
\"DEFAULT.KYLIN_SALES\",\"lookups\": [{\"table\": 
\"DEFAULT.KYLIN_CAL_DT\",\"kind\": \"LOOKUP\",\"alias\": 
\"KYLIN_CAL_DT\",\"join\": {\"type\": \"inner\",\"primary_key\": 
[\"KYLIN_CAL_DT.CAL_DT\"],\"foreign_key\": 
[\"KYLIN_SALES.PART_DT\"]}},{\"table\": \"DEFAULT.KY [...]
+"modelName": "kylin_test_model",
+"project": "learn_kylin"
+}
+```
+
+#### Response Sample
+```sh
+{
+"uuid": "2613d739-14c1-38ac-2e37-f36e46fd9976",
+"modelName": "kylin_test_model",
+"modelDescData": "{\"uuid\": 
\"0928468a-9fab-4185-9a14-6f2e7c74823f\",\"last_modified\": 0,\"version\": 
\"3.0.0.20500\",\"name\": \"kylin_test_model\",\"owner\": null,\"is_draft\": 
false,\"description\": \"\",\"fact_table\": 
\"DEFAULT.KYLIN_SALES\",\"lookups\": [{\"table\": 
\"DEFAULT.KYLIN_CAL_DT\",\"kind\": \"LOOKUP\",\"alias\": 
\"KYLIN_CAL_DT\",\"join\": {\"type\": \"inner\",\"primary_key\": 
[\"KYLIN_CAL_DT.CAL_DT\"],\"foreign_key\": 
[\"KYLIN_SALES.PART_DT\"]}},{\"table\": \"DEFAULT.KY [...]
+"successful": true,
+"message": null,
+"project": "learn_kylin",
+"ccInCheck": null,
+"seekingExprAdvice": false
+}
+```
+
+## Get ModelDescData
+`GET /kylin/api/models`
+
+#### Request Parameters
+* modelName - `optional` `string` Model name.
+* projectName - `optional` `string` Project Name.
+* limit - `optional` `integer` Offset used by pagination
+* offset - `optional` `integer` Models per page
+
+#### Response Sample
+```sh
+[
+    {
+        "uuid": "0928468a-9fab-4185-9a14-6f2e7c74823f",
+        "last_modified": 1568862496000,
+        "version": "3.0.0.20500",
+        "name": "kylin_sales_model",
+        "owner": null,
+        "is_draft": false,
+        "description": "",
+        "fact_table": "DEFAULT.KYLIN_SALES",
+        "lookups": [
+            {
+                "table": "DEFAULT.KYLIN_CAL_DT",
+                "kind": "LOOKUP",
+                "alias": "KYLIN_CAL_DT",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "KYLIN_CAL_DT.CAL_DT"
+                    ],
+                    "foreign_key": [
+                        "KYLIN_SALES.PART_DT"
+                    ]
+                }
+            },
+            {
+                "table": "DEFAULT.KYLIN_CATEGORY_GROUPINGS",
+                "kind": "LOOKUP",
+                "alias": "KYLIN_CATEGORY_GROUPINGS",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "KYLIN_CATEGORY_GROUPINGS.LEAF_CATEG_ID",
+                        "KYLIN_CATEGORY_GROUPINGS.SITE_ID"
+                    ],
+                    "foreign_key": [
+                        "KYLIN_SALES.LEAF_CATEG_ID",
+                        "KYLIN_SALES.LSTG_SITE_ID"
+                    ]
+                }
+            },
+            {
+                "table": "DEFAULT.KYLIN_ACCOUNT",
+                "kind": "LOOKUP",
+                "alias": "BUYER_ACCOUNT",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "BUYER_ACCOUNT.ACCOUNT_ID"
+                    ],
+                    "foreign_key": [
+                        "KYLIN_SALES.BUYER_ID"
+                    ]
+                }
+            },
+            {
+                "table": "DEFAULT.KYLIN_ACCOUNT",
+                "kind": "LOOKUP",
+                "alias": "SELLER_ACCOUNT",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "SELLER_ACCOUNT.ACCOUNT_ID"
+                    ],
+                    "foreign_key": [
+                        "KYLIN_SALES.SELLER_ID"
+                    ]
+                }
+            },
+            {
+                "table": "DEFAULT.KYLIN_COUNTRY",
+                "kind": "LOOKUP",
+                "alias": "BUYER_COUNTRY",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "BUYER_COUNTRY.COUNTRY"
+                    ],
+                    "foreign_key": [
+                        "BUYER_ACCOUNT.ACCOUNT_COUNTRY"
+                    ]
+                }
+            },
+            {
+                "table": "DEFAULT.KYLIN_COUNTRY",
+                "kind": "LOOKUP",
+                "alias": "SELLER_COUNTRY",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "SELLER_COUNTRY.COUNTRY"
+                    ],
+                    "foreign_key": [
+                        "SELLER_ACCOUNT.ACCOUNT_COUNTRY"
+                    ]
+                }
+            }
+        ],
+        "dimensions": [
+            {
+                "table": "KYLIN_SALES",
+                "columns": [
+                    "TRANS_ID",
+                    "SELLER_ID",
+                    "BUYER_ID",
+                    "PART_DT",
+                    "LEAF_CATEG_ID",
+                    "LSTG_FORMAT_NAME",
+                    "LSTG_SITE_ID",
+                    "OPS_USER_ID",
+                    "OPS_REGION"
+                ]
+            },
+            {
+                "table": "KYLIN_CAL_DT",
+                "columns": [
+                    "CAL_DT",
+                    "WEEK_BEG_DT",
+                    "MONTH_BEG_DT",
+                    "YEAR_BEG_DT"
+                ]
+            },
+            {
+                "table": "KYLIN_CATEGORY_GROUPINGS",
+                "columns": [
+                    "USER_DEFINED_FIELD1",
+                    "USER_DEFINED_FIELD3",
+                    "META_CATEG_NAME",
+                    "CATEG_LVL2_NAME",
+                    "CATEG_LVL3_NAME",
+                    "LEAF_CATEG_ID",
+                    "SITE_ID"
+                ]
+            },
+            {
+                "table": "BUYER_ACCOUNT",
+                "columns": [
+                    "ACCOUNT_ID",
+                    "ACCOUNT_BUYER_LEVEL",
+                    "ACCOUNT_SELLER_LEVEL",
+                    "ACCOUNT_COUNTRY",
+                    "ACCOUNT_CONTACT"
+                ]
+            },
+            {
+                "table": "SELLER_ACCOUNT",
+                "columns": [
+                    "ACCOUNT_ID",
+                    "ACCOUNT_BUYER_LEVEL",
+                    "ACCOUNT_SELLER_LEVEL",
+                    "ACCOUNT_COUNTRY",
+                    "ACCOUNT_CONTACT"
+                ]
+            },
+            {
+                "table": "BUYER_COUNTRY",
+                "columns": [
+                    "COUNTRY",
+                    "NAME"
+                ]
+            },
+            {
+                "table": "SELLER_COUNTRY",
+                "columns": [
+                    "COUNTRY",
+                    "NAME"
+                ]
+            }
+        ],
+        "metrics": [
+            "KYLIN_SALES.PRICE",
+            "KYLIN_SALES.ITEM_COUNT"
+        ],
+        "filter_condition": "",
+        "partition_desc": {
+            "partition_date_column": "KYLIN_SALES.PART_DT",
+            "partition_time_column": null,
+            "partition_date_start": 1325376000000,
+            "partition_date_format": "yyyy-MM-dd",
+            "partition_time_format": "HH:mm:ss",
+            "partition_type": "APPEND",
+            "partition_condition_builder": 
"org.apache.kylin.metadata.model.PartitionDesc$DefaultPartitionConditionBuilder"
+        },
+        "capacity": "MEDIUM"
+    }
+]
+```
+
+## Delete Model
+`DELETE /kylin/api/models/{modelName}`
+
+#### Path variable
+* modelName - `required` `string` Model name.
+
+***
+
 ## Resume Job
 `PUT /kylin/api/jobs/{jobId}/resume`
 
@@ -1082,6 +1357,9 @@ GET: 
/kylin/api/jobs?cubeName=kylin_sales_cube&limit=15&offset=0&projectName=lea
 * tables - `required` `string` table names you want to load from hive, 
separated with comma.
 * project - `required` `String`  the project which the tables will be loaded 
into.
 
+#### Request Body
+* calculate - `optional` `boolean` 
+
 #### Response Sample
 ```
 {
diff --git a/website/_docs/howto/howto_use_restapi.md 
b/website/_docs/howto/howto_use_restapi.md
index a06c349..6438861 100644
--- a/website/_docs/howto/howto_use_restapi.md
+++ b/website/_docs/howto/howto_use_restapi.md
@@ -13,6 +13,7 @@ This page lists the major RESTful APIs provided by Kylin.
    * [Query](#query)
    * [List queryable tables](#list-queryable-tables)
 * CUBE
+   * [Create cube](#create-cube)
    * [List cubes](#list-cubes)
    * [Get cube](#get-cube)
    * [Get cube descriptor (dimension, measure info, etc)](#get-cube-descriptor)
@@ -22,6 +23,10 @@ This page lists the major RESTful APIs provided by Kylin.
    * [Disable cube](#disable-cube)
    * [Purge cube](#purge-cube)
    * [Delete segment](#delete-segment)
+* MODEL
+   * [Create model](#create-model)
+   * [Get modelDescData](#get-modeldescdata)
+   * [Delete model](#delete-model)
 * JOB
    * [Resume job](#resume-job)
    * [Pause job](#pause-job)
@@ -300,6 +305,38 @@ curl -X POST -H "Authorization: Basic XXXXXXXXX" -H 
"Content-Type: application/j
 
 ***
 
+## Create cube
+`POST /kylin/api/cubes`
+
+#### Request Body
+* cubeDescData - `required` `string` cubeDescData to create
+* cubeName - `required` `string` cubeName to create
+* projectName - `required` `string` projectName to which cube belongs
+
+#### Request Sample
+```
+{
+"cubeDescData":"{\"uuid\": 
\"0ef9b7a8-3929-4dff-b59d-2100aadc8dbf\",\"last_modified\": 0,\"version\": 
\"3.0.0.20500\",\"name\": \"kylin_test_cube\",\"is_draft\": 
false,\"model_name\": \"kylin_sales_model\",\"description\": 
\"\",\"null_string\": null,\"dimensions\": [{\"name\": \"TRANS_ID\",\"table\": 
\"KYLIN_SALES\",\"column\": \"TRANS_ID\",\"derived\": null},{\"name\": 
\"YEAR_BEG_DT\",\"table\": \"KYLIN_CAL_DT\",\"column\": null,\"derived\": 
[\"YEAR_BEG_DT\"]},{\"name\": \"MONTH_BEG_DT\ [...]
+"cubeName":"kylin_test_cube",
+"project":"learn_kylin"
+}
+```
+
+#### Response Sample
+```
+{
+"uuid": "7b3faf69-eca8-cc5f-25f9-49b0f0b5d404",
+"cubeName": "kylin_test_cube",
+"cubeDescData":"{\"uuid\": 
\"0ef9b7a8-3929-4dff-b59d-2100aadc8dbf\",\"last_modified\": 0,\"version\": 
\"3.0.0.20500\",\"name\": \"kylin_test_cube\",\"is_draft\": 
false,\"model_name\": \"kylin_sales_model\",\"description\": 
\"\",\"null_string\": null,\"dimensions\": [{\"name\": \"TRANS_ID\",\"table\": 
\"KYLIN_SALES\",\"column\": \"TRANS_ID\",\"derived\": null},{\"name\": 
\"YEAR_BEG_DT\",\"table\": \"KYLIN_CAL_DT\",\"column\": null,\"derived\": 
[\"YEAR_BEG_DT\"]},{\"name\": \"MONTH_BEG_DT\ [...]
+"streamingData": null,
+"kafkaData": null,
+"successful": true,
+"message": null,
+"project": "learn_kylin",
+"streamingCube": null
+}
+```
+
 ## List cubes
 `GET /kylin/api/cubes`
 
@@ -807,6 +844,244 @@ curl -X PUT -H "Authorization: Basic XXXXXXXXX" -H 
'Content-Type: application/js
 
 ***
 
+## Create Model
+`POST /kylin/api/models`
+
+#### Request Body
+* modelDescData - `required` `string` modelDescData to create
+* modelName - `required` `string` modelName to create
+* projectName - `required` `string` projectName to which model belongs
+
+#### Request Sample
+```
+{
+"modelDescData": "{\"uuid\": 
\"0928468a-9fab-4185-9a14-6f2e7c74823f\",\"last_modified\": 0,\"version\": 
\"3.0.0.20500\",\"name\": \"kylin_test_model\",\"owner\": null,\"is_draft\": 
false,\"description\": \"\",\"fact_table\": 
\"DEFAULT.KYLIN_SALES\",\"lookups\": [{\"table\": 
\"DEFAULT.KYLIN_CAL_DT\",\"kind\": \"LOOKUP\",\"alias\": 
\"KYLIN_CAL_DT\",\"join\": {\"type\": \"inner\",\"primary_key\": 
[\"KYLIN_CAL_DT.CAL_DT\"],\"foreign_key\": 
[\"KYLIN_SALES.PART_DT\"]}},{\"table\": \"DEFAULT.KY [...]
+"modelName": "kylin_test_model",
+"project": "learn_kylin"
+}
+```
+ 
+#### Response Sample
+```
+{
+"uuid": "2613d739-14c1-38ac-2e37-f36e46fd9976",
+"modelName": "kylin_test_model",
+"modelDescData": "{\"uuid\": 
\"0928468a-9fab-4185-9a14-6f2e7c74823f\",\"last_modified\": 0,\"version\": 
\"3.0.0.20500\",\"name\": \"kylin_test_model\",\"owner\": null,\"is_draft\": 
false,\"description\": \"\",\"fact_table\": 
\"DEFAULT.KYLIN_SALES\",\"lookups\": [{\"table\": 
\"DEFAULT.KYLIN_CAL_DT\",\"kind\": \"LOOKUP\",\"alias\": 
\"KYLIN_CAL_DT\",\"join\": {\"type\": \"inner\",\"primary_key\": 
[\"KYLIN_CAL_DT.CAL_DT\"],\"foreign_key\": 
[\"KYLIN_SALES.PART_DT\"]}},{\"table\": \"DEFAULT.KY [...]
+"successful": true,
+"message": null,
+"project": "learn_kylin",
+"ccInCheck": null,
+"seekingExprAdvice": false
+}
+```
+
+## Get ModelDescData
+`GET /kylin/api/models`
+
+##### Request Parameters
+* modelName - `optional` `string` Model name.
+* projectName - `optional` `string` Project Name.
+* limit - `optional` `integer` Offset used by pagination
+* offset - `optional` `integer` Models per page
+
+#### Response Sample
+```sh
+[
+    {
+        "uuid": "0928468a-9fab-4185-9a14-6f2e7c74823f",
+        "last_modified": 1568862496000,
+        "version": "3.0.0.20500",
+        "name": "kylin_sales_model",
+        "owner": null,
+        "is_draft": false,
+        "description": "",
+        "fact_table": "DEFAULT.KYLIN_SALES",
+        "lookups": [
+            {
+                "table": "DEFAULT.KYLIN_CAL_DT",
+                "kind": "LOOKUP",
+                "alias": "KYLIN_CAL_DT",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "KYLIN_CAL_DT.CAL_DT"
+                    ],
+                    "foreign_key": [
+                        "KYLIN_SALES.PART_DT"
+                    ]
+                }
+            },
+            {
+                "table": "DEFAULT.KYLIN_CATEGORY_GROUPINGS",
+                "kind": "LOOKUP",
+                "alias": "KYLIN_CATEGORY_GROUPINGS",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "KYLIN_CATEGORY_GROUPINGS.LEAF_CATEG_ID",
+                        "KYLIN_CATEGORY_GROUPINGS.SITE_ID"
+                    ],
+                    "foreign_key": [
+                        "KYLIN_SALES.LEAF_CATEG_ID",
+                        "KYLIN_SALES.LSTG_SITE_ID"
+                    ]
+                }
+            },
+            {
+                "table": "DEFAULT.KYLIN_ACCOUNT",
+                "kind": "LOOKUP",
+                "alias": "BUYER_ACCOUNT",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "BUYER_ACCOUNT.ACCOUNT_ID"
+                    ],
+                    "foreign_key": [
+                        "KYLIN_SALES.BUYER_ID"
+                    ]
+                }
+            },
+            {
+                "table": "DEFAULT.KYLIN_ACCOUNT",
+                "kind": "LOOKUP",
+                "alias": "SELLER_ACCOUNT",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "SELLER_ACCOUNT.ACCOUNT_ID"
+                    ],
+                    "foreign_key": [
+                        "KYLIN_SALES.SELLER_ID"
+                    ]
+                }
+            },
+            {
+                "table": "DEFAULT.KYLIN_COUNTRY",
+                "kind": "LOOKUP",
+                "alias": "BUYER_COUNTRY",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "BUYER_COUNTRY.COUNTRY"
+                    ],
+                    "foreign_key": [
+                        "BUYER_ACCOUNT.ACCOUNT_COUNTRY"
+                    ]
+                }
+            },
+            {
+                "table": "DEFAULT.KYLIN_COUNTRY",
+                "kind": "LOOKUP",
+                "alias": "SELLER_COUNTRY",
+                "join": {
+                    "type": "inner",
+                    "primary_key": [
+                        "SELLER_COUNTRY.COUNTRY"
+                    ],
+                    "foreign_key": [
+                        "SELLER_ACCOUNT.ACCOUNT_COUNTRY"
+                    ]
+                }
+            }
+        ],
+        "dimensions": [
+            {
+                "table": "KYLIN_SALES",
+                "columns": [
+                    "TRANS_ID",
+                    "SELLER_ID",
+                    "BUYER_ID",
+                    "PART_DT",
+                    "LEAF_CATEG_ID",
+                    "LSTG_FORMAT_NAME",
+                    "LSTG_SITE_ID",
+                    "OPS_USER_ID",
+                    "OPS_REGION"
+                ]
+            },
+            {
+                "table": "KYLIN_CAL_DT",
+                "columns": [
+                    "CAL_DT",
+                    "WEEK_BEG_DT",
+                    "MONTH_BEG_DT",
+                    "YEAR_BEG_DT"
+                ]
+            },
+            {
+                "table": "KYLIN_CATEGORY_GROUPINGS",
+                "columns": [
+                    "USER_DEFINED_FIELD1",
+                    "USER_DEFINED_FIELD3",
+                    "META_CATEG_NAME",
+                    "CATEG_LVL2_NAME",
+                    "CATEG_LVL3_NAME",
+                    "LEAF_CATEG_ID",
+                    "SITE_ID"
+                ]
+            },
+            {
+                "table": "BUYER_ACCOUNT",
+                "columns": [
+                    "ACCOUNT_ID",
+                    "ACCOUNT_BUYER_LEVEL",
+                    "ACCOUNT_SELLER_LEVEL",
+                    "ACCOUNT_COUNTRY",
+                    "ACCOUNT_CONTACT"
+                ]
+            },
+            {
+                "table": "SELLER_ACCOUNT",
+                "columns": [
+                    "ACCOUNT_ID",
+                    "ACCOUNT_BUYER_LEVEL",
+                    "ACCOUNT_SELLER_LEVEL",
+                    "ACCOUNT_COUNTRY",
+                    "ACCOUNT_CONTACT"
+                ]
+            },
+            {
+                "table": "BUYER_COUNTRY",
+                "columns": [
+                    "COUNTRY",
+                    "NAME"
+                ]
+            },
+            {
+                "table": "SELLER_COUNTRY",
+                "columns": [
+                    "COUNTRY",
+                    "NAME"
+                ]
+            }
+        ],
+        "metrics": [
+            "KYLIN_SALES.PRICE",
+            "KYLIN_SALES.ITEM_COUNT"
+        ],
+        "filter_condition": "",
+        "partition_desc": {
+            "partition_date_column": "KYLIN_SALES.PART_DT",
+            "partition_time_column": null,
+            "partition_date_start": 1325376000000,
+            "partition_date_format": "yyyy-MM-dd",
+            "partition_time_format": "HH:mm:ss",
+            "partition_type": "APPEND",
+            "partition_condition_builder": 
"org.apache.kylin.metadata.model.PartitionDesc$DefaultPartitionConditionBuilder"
+        },
+        "capacity": "MEDIUM"
+    }
+]
+```
+
+## Delete Model
+`DELETE /kylin/api/models/{modelName}`
+
+#### Path variable
+* modelName - `required` `string` Model name you want delete.
+
+***
+
 ## Resume Job
 `PUT /kylin/api/jobs/{jobId}/resume`
 
@@ -1083,6 +1358,9 @@ GET: 
/kylin/api/jobs?cubeName=kylin_sales_cube&limit=15&offset=0&projectName=lea
 * tables - `required` `string` table names you want to load from hive, 
separated with comma.
 * project - `required` `String`  the project which the tables will be loaded 
into.
 
+#### Request Body
+* calculate - `optional` `boolean` 
+
 #### Response Sample
 ```
 {
diff --git a/website/_docs/install/configuration.cn.md 
b/website/_docs/install/configuration.cn.md
index 95abf70..f96c369 100644
--- a/website/_docs/install/configuration.cn.md
+++ b/website/_docs/install/configuration.cn.md
@@ -14,7 +14,7 @@ permalink: /cn/docs/install/configuration.html
                - [Cube 级别配置重写](#cube-config-override)
                - [重写 MapReduce 参数](#mr-config-override)
                - [重写 Hive 参数](#hive-config-override)
-                - [重写 Spark 参数](#spark-config-override)
+               - [重写 Spark 参数](#spark-config-override)
 - [部署配置](#kylin-deploy)
     - [部署 Kylin](#deploy-config)
        - [分配更多内存给 Kylin 实例](#kylin-jvm-settings)

Reply via email to