Preview Tree Structure

URL:

GET /api/v1/tree/commit-info

Request Params:

FieldRequiredTypeLocationDescription
pathYstringQuerydirectory path

Response Params:

  1. Common
FieldTypeDescription
dataarrayTree list
  1. MR Items
FieldTypeDescription
oidstringObject Id
namestringDirectory Name
content_typestringFile Type
- directory
- file
messagestringThe last update commit message
datestringThe Derectory's update date

Request Example:

GET api/v1/tree/commit-info?path=/
Content-Type: application/json

Response Example::

{
    "data": {
        "req_result": true,
        "data": [
            {
                "oid": "69f4946800829bc227af5684420b5f3005b0097e",
                "name": "third-part",
                "content_type": "directory",
                "message": "Init Mega Directory",
                "date": "1733814318"
            },
            {
                "oid": "69f4946800829bc227af5684420b5f3005b0097e",
                "name": "project",
                "content_type": "directory",
                "message": "Init Mega Directory",
                "date": "1733814318"
            },
            {
                "oid": "69f4946800829bc227af5684420b5f3005b0097e",
                "name": "doc",
                "content_type": "directory",
                "message": "Init Mega Directory",
                "date": "1733814318"
            },
            {
                "oid": "69f4946800829bc227af5684420b5f3005b0097e",
                "name": "release",
                "content_type": "directory",
                "message": "Init Mega Directory",
                "date": "1733814318"
            }
        ],
        "err_message": ""
    }
}