Directories

List directory contents

List paginated contents of a directory at a specific revision, with optional workspace support.

get/api/repos/{namespace}/{repo_name}/dir/{resource}

Request

Path parameters

namespacestring required

Namespace of the repository

repo_namestring required

Name of the repository

resourcestring required

Path to the directory (including branch/commit ID)

pageinteger nullable required
page_sizeinteger nullable required
api_versionstring nullable required
depthinteger nullable required

Depth of nested directory traversal. 0 = current directory only (default), 1 = include immediate children, -1 = unlimited.

sort_bystring nullable required

Sort entries by "name" (default) or "date" (latest commit timestamp).

reverseboolean nullable required

Reverse the sort order. Default is false (ascending).

Response

Paginated list of directory entries

oxen_versionstring nullable
statusstring required
status_messagestring required
page_numberinteger required
page_sizeinteger required
total_entriesinteger required
total_pagesinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.