dir
List directory for resource
List directory for resource
GET
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
(Required)
Example:
"ox"
Example:
"test-repo"
(Required) A combination of branch or commit ID plus a path.
Example:
"fake_branch/fake_file.ex"
Response
200 - application/json
OK
Example:
[
{
"datatype": "dir",
"filename": "annotations",
"is_dir": true,
"latest_commit": {
"author": "Ox",
"email": "ox@oxen.ai",
"id": "952abd860ffa5635",
"message": "adding add data",
"parent_ids": ["3c850d9296789f89"],
"timestamp": "2023-01-06T23:12:59.160132Z"
},
"size": 526141
},
{
"datatype": "dir",
"filename": "images",
"is_dir": true,
"latest_commit": {
"author": "Ox",
"email": "ox@oxen.ai",
"id": "952abd860ffa5635",
"message": "adding add data",
"parent_ids": ["3c850d9296789f89"],
"timestamp": "2023-01-06T23:12:59.160132Z"
},
"size": 99653096
},
{
"datatype": "text",
"filename": "LICENSE",
"is_dir": false,
"latest_commit": {
"author": "Ox",
"email": "ox@oxen.ai",
"id": "952abd860ffa5635",
"message": "adding add data",
"parent_ids": ["3c850d9296789f89"],
"timestamp": "2023-01-06T23:12:59.160132Z"
},
"size": 20
},
{
"datatype": "markdown",
"filename": "README.md",
"is_dir": false,
"latest_commit": {
"author": "Ox",
"email": "ox@oxen.ai",
"id": "952abd860ffa5635",
"message": "adding add data",
"parent_ids": ["3c850d9296789f89"],
"timestamp": "2023-01-06T23:12:59.160132Z"
},
"size": 107
}
]
Example:
1
Example:
10
Example:
"success"
Example:
"resource_found"
Example:
4
Example:
0