Preview Tree Structure
URL:
GET /api/v1/tree/commit-info
Request Params:
Field | Required | Type | Location | Description |
---|---|---|---|---|
path | Y | string | Query | directory path |
Response Params:
- Common
Field | Type | Description |
---|---|---|
data | array | Tree list |
- MR Items
Field | Type | Description |
---|---|---|
oid | string | Object Id |
name | string | Directory Name |
content_type | string | File Type - directory - file |
message | string | The last update commit message |
date | string | The 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": ""
}
}