获取技能详情
功能介绍
获取技能详情
URI
GET /v1/skill-market/skills/{skill_id}
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
skill_id |
是 |
String |
技能ID |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
status |
否 |
Integer |
技能审核状态状态,1表示审核通过,2表示审核不通过,0表示待审核 |
|
version |
否 |
String |
技能版本 |
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
X-Auth-Token |
否 |
String |
用户Token。获取方法请参见获取Token |
响应参数
状态码: 200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
sub_scenes |
String |
技能应用场景 |
|
app_template_id |
String |
应用模板ID |
|
icon |
String |
技能图标 |
|
version_num |
Integer |
技能版本数量 |
|
description |
String |
技能描述 |
|
product_info |
Array of strings |
计费编码信息 |
|
type |
String |
技能类别,分为standard和lite |
|
platform |
String |
技能操作系统平台,其值为:Linux,Android, iOS, LiteOS,Windows |
|
self_dev_flag |
Integer |
自研标识,1表示是HiLens自研算法。 |
|
measure_type |
String |
计费类型,physical_src表示 src |
|
approval_result |
String |
技能审核结果 |
|
update_time |
String |
更新时间,形如2022-06-30 17:22:48 GMT+08:00 |
|
channel_limit |
Integer |
通道数 |
|
publish_time |
String |
发布时间 |
|
resource_step_size |
Integer |
步长 |
|
approval_time |
String |
审批时间 |
|
cloud_service_type |
String |
云服务编码 |
|
summary |
String |
摘要 |
|
test_status |
Integer |
测试状态 |
|
chip |
String |
芯片 |
|
is_verify_model |
Boolean |
是否校验模型 |
|
format |
String |
技能类型,文件类型file,镜像类型image |
|
resource_type |
String |
资源类别 |
|
version |
String |
技能版本 |
|
measure_unit |
String |
计费单位 qps 表示按qps收费,road表示技能路数instance 表示按实例收费 |
|
tags |
Array of strings |
标签 |
|
size |
Integer |
技能大小 |
|
test_result |
String |
测试结果 |
|
install_times |
Integer |
安装次数 |
|
privacy_policy |
Array of strings |
隐私条款 |
|
name |
String |
技能名字 |
|
scenes |
Array of strings |
技能场景 |
|
charge_model |
Integer |
计费模式 |
|
resource_spec_code |
String |
云服务资源编码 |
|
skill_id |
String |
技能Id |
|
developer |
String |
开发者名字 |
|
main_scenes |
String |
主场景 |
|
device_types |
Array of strings |
所支持的设备类别 |
|
status |
Integer |
技能状态 |
|
versions |
Array of strings |
技能版本号列表 |
状态码: 401
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
X-request-id |
String |
This field is the request ID number for task tracking. Format is request_uuid-timestamp-hostname. |
请求示例
获取技能详情
GET https://{endpoint}/skill-market/skills/{skill_id}
Request Header: Content-Type: application/jsonX-Auth-Token: MIINRwYJKoZIhvcNAQcCoIINODCCDTQCAQExDTALBglghkgBZQMEAgEwgguVBgkqhkiG...
响应示例
状态码: 200
技能详情
{
"sub_scenes" : "行人轨迹",
"icon" : null,
"version_num" : 1,
"description" : null,
"product_info" : [ ],
"type" : "standard",
"platform" : "Linux",
"self_dev_flag" : 1,
"approval_result" : "ok",
"measure_type" : "physical_src",
"update_time" : "2022-06-30 17:30:32 GMT+08:00",
"channel_limit" : 10000,
"publish_time" : "2022-06-30 17:31:52 GMT+08:00",
"resource_step_size" : 1,
"approval_time" : "2022-06-30 17:30:32 GMT+08:00",
"cloud_service_type" : null,
"test_status" : 0,
"chip" : "Ascend 310",
"is_verify_model" : false,
"format" : "file",
"resource_type" : null,
"version" : "1.0.0",
"measure_unit" : "qps",
"tags" : [ ],
"size" : 1439,
"test_result" : null,
"versions" : [ "1.0.0" ],
"install_times" : 0,
"privacy_policy" : [ ],
"name" : "create26xDM",
"scenes" : [ ],
"charge_model" : 2,
"resource_spec_code" : null,
"skill_id" : 12233223,
"developer" : "ssss",
"main_scenes" : "园区",
"device_types" : [ ],
"status" : 1
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
技能详情 |
|
401 |
认证不通过 |
|
403 |
拒绝执行请求 |
|
404 |
请求的资源不存在 |
|
500 |
服务器内部错误 |
错误码
请参见错误码。