Authorization header to first request for authenticationPOST http://localhost:7070/kylin/api/user/authenticationAuthorization:Basic xxxxJD124xxxGFxxxSDF Content-Type: application/json;charset=UTF-8 {% endhighlight %}
GET http://localhost:7070/kylin/api/cubes?cubeName={cube_name}&limit=15&offset=0Authorization:Basic xxxxJD124xxxGFxxxSDF Content-Type: application/json;charset=UTF-8 {% endhighlight %}
PUT http://localhost:7070/kylin/api/cubes/{cube_name}/rebuildstartTime and endTime should be utc timestamp.buildType can be BUILD ,MERGE or REFRESH. BUILD is for building a new segment, REFRESH for refreshing an existing segment. MERGE is for merging multiple existing segments into one bigger segment.Authorization:Basic xxxxJD124xxxGFxxxSDF Content-Type: application/json;charset=UTF-8
{ “startTime”: 0, “endTime”: 1388563200000, “buildType”: “BUILD” } {% endhighlight %}
GET http://localhost:7070/kylin/api/jobs/{job_uuid}job_status represents current status of job.PUT http://localhost:7070/kylin/api/jobs/{job_uuid}/resumePUT http://localhost:7070/kylin/api/cubes/{cube_name}/optimize2