文档
测试

创建project

POST
http://192.168.88.132:7070/kylin/api/projects

接口描述

创建一个project

请求头

参数名
类型
描述
必填
Authorization
string
示例:Basic QURNSU46S1lMSU4=
必填
Content-Type
string
示例:application/json;charset=utf-8
必填

请求参数

参数名
类型
描述
必填
projectDescData
string
示例:{"name":"Test3","description":"123","override_kylin_properties":{}}
必填

响应参数

参数名
类型
描述
必填
code
string
示例:999
必填
data
object
示例:null
必填
msg
string
示例:Failed to deal with the request:null
必填
stacktrace
string
示例:org.apache.kylin.rest.exception.InternalErrorException: Failed to deal with the request:null at org.apache.kylin.rest.controller.ProjectController.deserializeProjectDesc(ProjectController.java:185) at org.apache.kylin.rest.controller.ProjectController.saveProject(ProjectController.java:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccesso...
必填
exception
string
示例:Failed to deal with the request:null
必填
url
string
示例:http://192.168.88.132:7070/kylin/api/projects
必填
code
string
示例:999
必填
data
object
示例:null
必填
msg
string
示例:The project named 'KylinAPITest' already exists.
必填
stacktrace
string
示例:org.apache.kylin.rest.exception.InternalErrorException: The project named 'KylinAPITest' already exists. at org.apache.kylin.rest.controller.ProjectController.saveProject(ProjectController.java:141) at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(M...
必填
exception
string
示例:The project named 'KylinAPITest' already exists.
必填
url
string
示例:http://192.168.88.132:7070/kylin/api/projects
必填
uuid
string
示例:2f80a984-fa01-288c-43bc-c3e1d7b31479
必填
last_modified
number
示例:1587965985437
必填
version
string
示例:2.6.0.20500
必填
name
string
示例:Test3
必填
tables
array
数据列表
必填
owner
string
示例:ADMIN
必填
status
string
示例:ENABLED
必填
create_time_utc
number
示例:1587965985436
必填
last_update_time
object
示例:null
必填
description
string
示例:123
必填
realizations
array
数据列表
必填
models
array
数据列表
必填
ext_filters
array
数据列表
必填
override_kylin_properties
object
数据字典
必填

说明 / 示例

Request Body: { "projectDescData":"{ \"name\":\"Test4\", \"description\":\"This is a test\", \"override_kylin_properties\":{} }" } 说明: name为创建project的名称,description为描述信息,override_kylin_properties为重新设置的参数,一般为空。 **注**:除非对Hadoop及Kylin参数体系很了解,一般不要去重新设置参数 响应: { "uuid": "0edd3c4a-7cca-06e8-1915-deb56eb816fc", "last_modified": 1587971223087, "version": "2.6.0.20500", "name": "Test4", "tables": [], "owner": "ADMIN", "status": "ENABLED", "create_time_utc": 1587971223087, "last_update_time": null, "description": "This is a test", "realizations": [], "models": [], "ext_filters": [], "override_kylin_properties": { } }