知眸核心版开放平台
  1. 应用
知眸核心版开放平台
  • 核心版开放接口
    • 接口说明
    • 更新记录
    • 接口错误码
    • 授权
      • 授权接口
    • 应用
      • 获取应用列表
        GET
      • 下发应用
        POST
      • 修改应用配置
        PUT
      • 删除应用
        DELETE
    • 任务
      • 创建分析任务
      • 配置分析任务
      • 上报任务图片
      • 上报任务飞行状态数据
      • 关闭分析任务
      • 获取分析任务列表
      • 指定规则AI直播推流
      • 关闭AI直播推流
    • 回调
      • Mqtt任务数据发布
      • 消息回调接口
    • 报告
      • 导出任务报告
  1. 应用

获取应用列表

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
上一页
授权接口
下一页
下发应用
Built with