Sugarcrm支持 产品指南 糖开发人员 糖开发人员指南11.0 一体化 网页服务 休息API. 终点 /<module>/:root/tree GET

/<module>/:root/tree GET

概述

为选定的根记录检索完整的树。

请求论据

名称 类型 描述 必需的
module String 包含嵌套集数据的糖模块的名称并实现嵌套录取器。 True
:record String The ID of record True

响应论点

此端点不会返回任何响应参数。

回复

{
"next_offset": -1,
"records": [{
    "id": "ad4ddf76-327a-11e4-818b-5404a67f3363",
    "name": "Documents",
    "date_entered": null,
    "date_modified": null,
    "modified_user_id": null,
    "created_by": null,
    "description": null,
    "deleted": "0",
    "source_id": null,
    "source_type": null,
    "source_meta": null,
    "root": "935d3e07-327a-11e4-818b-5404a67f3363",
    "lft": "2",
    "rgt": "9",
    "level": "1",
    "children": {
        "next_offset": -1,
        "records": [{
            "id": "ad4e03f1-327a-11e4-818b-5404a67f3363",
            "name": "Engeneering",
            "date_entered": null,
            "date_modified": null,
            "modified_user_id": null,
            "created_by": null,
            "description": null,
            "deleted": "0",
            "source_id": null,
            "source_type": null,
            "source_meta": null,
            "root": "935d3e07-327a-11e4-818b-5404a67f3363",
            "lft": "3",
            "rgt": "4",
            "level": "2",
            "children": {
                "next_offset": -1,
                "records": []
            }
        }, {
            "id": "f482dd1b-327a-11e4-818b-5404a67f3363",
            "name": "Testing",
            "date_entered": null,
            "date_modified": null,
            "modified_user_id": null,
            "created_by": null,
            "description": null,
            "deleted": "0",
            "source_id": null,
            "source_type": null,
            "source_meta": null,
            "root": "935d3e07-327a-11e4-818b-5404a67f3363",
            "lft": "5",
            "rgt": "6",
            "level": "2",
            "children": {
                "next_offset": -1,
                "records": []
            }
        }, {
            "id": "f482fb7a-327a-11e4-818b-5404a67f3363",
            "name": "Management",
            "date_entered": null,
            "date_modified": null,
            "modified_user_id": null,
            "created_by": null,
            "description": null,
            "deleted": "0",
            "source_id": null,
            "source_type": null,
            "source_meta": null,
            "root": "935d3e07-327a-11e4-818b-5404a67f3363",
            "lft": "7",
            "rgt": "8",
            "level": "2",
            "children": {
                "next_offset": -1,
                "records": []
            }
        }]
    }
}, {
    "id": "045c03b9-327b-11e4-818b-5404a67f3363",
    "name": "Audit",
    "date_entered": null,
    "date_modified": null,
    "modified_user_id": null,
    "created_by": null,
    "description": null,
    "deleted": "0",
    "source_id": null,
    "source_type": null,
    "source_meta": null,
    "root": "935d3e07-327a-11e4-818b-5404a67f3363",
    "lft": "10",
    "rgt": "19",
    "level": "1",
    "children": {
        "next_offset": -1,
        "records": [{
            "id": "045c1de6-327b-11e4-818b-5404a67f3363",
            "name": "Financial",
            "date_entered": null,
            "date_modified": null,
            "modified_user_id": null,
            "created_by": null,
            "description": null,
            "deleted": "0",
            "source_id": null,
            "source_type": null,
            "source_meta": null,
            "root": "935d3e07-327a-11e4-818b-5404a67f3363",
            "lft": "11",
            "rgt": "14",
            "level": "2",
            "children": {
                "next_offset": -1,
                "records": [{
                    "id": "0f658847-327b-11e4-818b-5404a67f3363",
                    "name": "Invoices",
                    "date_entered": null,
                    "date_modified": null,
                    "modified_user_id": null,
                    "created_by": null,
                    "description": null,
                    "deleted": "0",
                    "source_id": null,
                    "source_type": null,
                    "source_meta": null,
                    "root": "935d3e07-327a-11e4-818b-5404a67f3363",
                    "lft": "12",
                    "rgt": "13",
                    "level": "3",
                    "children": {
                        "next_offset": -1,
                        "records": []
                    }
                }]
            }
        }, {
            "id": "0f65a6c7-327b-11e4-818b-5404a67f3363",
            "name": "Agreements",
            "date_entered": null,
            "date_modified": null,
            "modified_user_id": null,
            "created_by": null,
            "description": null,
            "deleted": "0",
            "source_id": null,
            "source_type": null,
            "source_meta": null,
            "root": "935d3e07-327a-11e4-818b-5404a67f3363",
            "lft": "15",
            "rgt": "16",
            "level": "2",
            "children": {
                "next_offset": -1,
                "records": []
            }
        }, {
            "id": "14d30bf3-327b-11e4-818b-5404a67f3363",
            "name": "Clients",
            "date_entered": null,
            "date_modified": null,
            "modified_user_id": null,
            "created_by": null,
            "description": null,
            "deleted": "0",
            "source_id": null,
            "source_type": null,
            "source_meta": null,
            "root": "935d3e07-327a-11e4-818b-5404a67f3363",
            "lft": "17",
            "rgt": "18",
            "level": "2",
            "children": {
                "next_offset": -1,
                "records": []
            }
        }]
    }
}]
}

更改日志

版本 改变
v10 Added /<module>/:record/tree GET endpoint.

最后修改:2021-02-17 02:44:13