获取应用列表
GET
/api/app
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET '/api/app' \
--header 'Authorization: Bearer '
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
可选
apps
array [object {7}] | null
应用列表
示例
{
"code": 0,
"msg": "string",
"data": {
"apps": [
{
"app_id": "string",
"name": "string",
"description": "string",
"is_trial": true,
"trial_expired_at": 0,
"updated_at": 0,
"rules": [
{
"rule_id": "string",
"name": "string",
"interval": 0,
"disable": true,
"is_license_expired": true,
"license_expired_at": 0,
"class_area": {
"enable": true,
"class_names": [
"string"
],
"color": "string",
"threshold": 0,
"point_type": 0,
"area_type": 0,
"point_distance": {
"enable": true,
"area_position": 0,
"numeric_type": 0,
"min": 0,
"max": 0
}
},
"classes": [
{
"class_id": "string",
"name": "string",
"color": "string",
"threshold": 0,
"min_pixel": 0,
"max_pixel": 0,
"attribute": {
"enable": true,
"type": "string",
"class_name": "string"
},
"classify": {
"enable": true,
"mode": "string",
"attrs": [
{
"attr_id": "string",
"name": "string",
"options": [
{
"option_id": "string",
"name": "string"
}
]
}
]
}
}
],
"counter": {
"enable": true,
"numeric_type": 0,
"distance": 0,
"min_count": 0,
"max_count": 0,
"class_counts": [
{
"class_id": "string",
"min_count": 0,
"max_count": 0
}
]
}
}
]
}
]
}
}
修改于 2025-03-18 02:53:06