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 2016/06/01 04:15:12 UTC
kylin git commit: add one more curl example
Repository: kylin
Updated Branches:
refs/heads/document a60332881 -> d48778987
add one more curl example
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/d4877898
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/d4877898
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/d4877898
Branch: refs/heads/document
Commit: d48778987d445d942e7f6aee496712390fa59e60
Parents: a603328
Author: Li Yang <li...@apache.org>
Authored: Wed Jun 1 12:15:06 2016 +0800
Committer: Li Yang <li...@apache.org>
Committed: Wed Jun 1 12:15:06 2016 +0800
----------------------------------------------------------------------
website/_docs15/howto/howto_use_restapi.md | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/d4877898/website/_docs15/howto/howto_use_restapi.md
----------------------------------------------------------------------
diff --git a/website/_docs15/howto/howto_use_restapi.md b/website/_docs15/howto/howto_use_restapi.md
index 31103b7..5638a8a 100644
--- a/website/_docs15/howto/howto_use_restapi.md
+++ b/website/_docs15/howto/howto_use_restapi.md
@@ -67,7 +67,7 @@ Authorization:Basic {data}
}
```
-Example with `curl`:
+#### Curl Example
```
curl -c /path/to/cookiefile.txt -X POST -H "Authorization: Basic XXXXXXXXX" -H 'Content-Type: application/json' http://<host>:<port>/kylin/api/user/authentication
@@ -196,6 +196,13 @@ curl -b /path/to/cookiefile.txt -X PUT -H 'Content-Type: application/json' -d '{
}
```
+#### 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://YOUR_HOST:7070/kylin/api/query
+```
+
+
## List queryable tables
`GET /tables_and_columns`