You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2017/03/17 21:55:04 UTC
kylin git commit: add curl example for build cube
Repository: kylin
Updated Branches:
refs/heads/document a66cc9b34 -> 55b167095
add curl example for build cube
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/55b16709
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/55b16709
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/55b16709
Branch: refs/heads/document
Commit: 55b1670951c6847974e4bc26a1c537c3ac9764f4
Parents: a66cc9b
Author: Li Yang <li...@apache.org>
Authored: Sat Mar 18 05:54:55 2017 +0800
Committer: Li Yang <li...@apache.org>
Committed: Sat Mar 18 05:54:55 2017 +0800
----------------------------------------------------------------------
website/_docs16/howto/howto_use_restapi.md | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/55b16709/website/_docs16/howto/howto_use_restapi.md
----------------------------------------------------------------------
diff --git a/website/_docs16/howto/howto_use_restapi.md b/website/_docs16/howto/howto_use_restapi.md
index 604e905..4e0483e 100644
--- a/website/_docs16/howto/howto_use_restapi.md
+++ b/website/_docs16/howto/howto_use_restapi.md
@@ -116,6 +116,12 @@ curl -X PUT --user ADMIN:KYLIN -H "Content-Type: application/json;charset=utf-8"
}
```
+#### Curl Example
+
+```
+curl -X POST -H "Authorization: Basic XXXXXXXXX" -H "Content-Type: application/json" -d '{ "sql":"select count(*) from TEST_KYLIN_FACT", "project":"learn_kylin" }' http://localhost:7070/kylin/api/query
+```
+
#### Response Body
* columnMetas - Column metadata information of result set.
* results - Data set of result.
@@ -209,12 +215,6 @@ curl -X PUT --user ADMIN:KYLIN -H "Content-Type: application/json;charset=utf-8"
}
```
-#### Curl Example
-
-```
-curl -X POST -H "Authorization: Basic XXXXXXXXX" -H "Content-Type: application/json" -d '{ "sql":"select count(*) from TEST_KYLIN_FACT", "project":"learn_kylin" }' http://localhost:7070/kylin/api/query
-```
-
## List queryable tables
`GET /kylin/api/tables_and_columns`
@@ -656,6 +656,11 @@ Get descriptor for specified cube instance.
* endTime - `required` `long` End timestamp of data to build
* buildType - `required` `string` Supported build type: 'BUILD', 'MERGE', 'REFRESH'
+#### Curl Example
+```
+curl -X PUT -H "Authorization: Basic XXXXXXXXX" -H 'Content-Type: application/json' -d '{"startTime":'1423526400000', "endTime":'1423526400', "buildType":"BUILD"}' http://<host>:<port>/kylin/api/cubes/{cubeName}/build
+```
+
#### Response Sample
```
{