1. 获取指定模型的关联文档数据

1.1. 基本信息

Path

POST http://building-bos.rickricks.com/bosfoundationservice/{buildingId}/prototype/linked/query?page=1&per_page=10

API描述

获取指定模型的关联文档数据

1.2. 请求参数

Request Headers

参数名称 介绍 举例
Authorization 用户令牌 abc
Content-Type 内容类型 application/json

Path Param

参数名称 介绍 举例
buildingId 建筑id abc

Query Param

参数名称 介绍 举例
page 页数 1
per_page 每页条数 10

Request Body

application/json

{
    "condition": [
        {
            "bosclass": "uoDocDocument",
            "alias": "udd",
            "subCondition": []
        },
        {
            "bosclass": "uoModelDocument",
            "alias": "umd",
            "subCondition": [
                {
                    "field": "_key",
                    "operator": "==",
                    "value": "{key}", // 模型key
                    "number": "false"
                }
            ]
        },
        {
            "bosclass": "uirModelDocumentDocument",
            "alias": "umdd",
            "type": "relationship",
            "from": "umd",
            "to": "udd",
            "subCondition": []
        }
    ],
    "select": {
        "name": "udd.name",
        "key": "udd._key",
        "attribute": "udd.attribute",
        "code": "udd.code",
        "type": "umdd.type"
    }
}

1.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
            {
                "code": "A1", // 文档数据编码
                "name": "A1", // 文档数据名称
                "attribute": {  // 文档数据属性
                    "A1": "A1",
                    "A2": "A1",
                    "编码": "A1",
                    "名称": "A1"
                },
                "type": "模型文档",  // 模型与文档数据的关系名
                "key": "a25ba28a990d4bfc838a851e1ed095e7"  // 文档数据key
            }
        ],
        "count": 1
    }
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-11-04 16:43:29

results matching ""

    No results matching ""