Fetch multiple files content in one api #2434
Unanswered
emadimehrdad
asked this question in
Q&A
Replies: 1 comment 1 reply
|
You can use the file archive API ( From our docs (https://python-gitlab.readthedocs.io/en/stable/gl_objects/projects.html): tgz = project.repository_archive()
# get the archive for a branch/tag/commit
tgz = project.repository_archive(sha='4567abc')
# get the archive in a different format
zip = project.repository_archive(format='zip') |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello
I want to get the contents of all files in a folder or in repo but I didn't find anything. The one way I find is to get all files' names from repository_tree and get every single file content from "project files" API.
I want to get content from multiple files at the same time with one API.
Is there any way?
I've searched a lot in documents but didn't find the answer to my question.
All reactions