fix: update pagination parameters in getRepositoryTree function and s… #277
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Parameters of the /repository/tree interface
ID (string or integer)
Description: The ID or URL encoding path of the project (such as namespace/project name).
Example: id=42 or id=mygroup% 2Fmyproject.
Path (string)
Description: Specify the subdirectories path within the repository (default is the root directory).
Example: path=src/components means to view the contents of the src/components directory.
Ref (string)
Description: Branch name, label, or commit hash (defaults to the default branch of the project, usually main or master).
Example: ref=develop or ref=abc123f (submit hash).
Recursive (Boolean value)
Explanation: Recursively return all subdirectories' contents (default is false, only direct sub items are returned).
Example: Recursive=true can obtain the complete directory tree.
Per_rage (integer)
Description: The number of items returned per page (used for pagination, in conjunction with the page parameter).
Example: per_mage=20 means a maximum of 20 files/folders per page.
Page (integer)
Description: Specify the page number of the returned result (in conjunction with per_mage to implement pagination).
Example: Page=2 returns data from the second page.