Skip to content

[API] Retrieve a list of metadata and content for the requested file paths. #33495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MSalah73 opened this issue Feb 4, 2025 · 2 comments · Fixed by #34139
Closed

[API] Retrieve a list of metadata and content for the requested file paths. #33495

MSalah73 opened this issue Feb 4, 2025 · 2 comments · Fixed by #34139
Labels
topic/api Concerns mainly the API type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@MSalah73
Copy link

MSalah73 commented Feb 4, 2025

Feature Description

Currently, the only way to fetch the metadata and content for multiple files is to call /repos/{owner}/{repo}/contents/{filepath} for each file. It would be more efficient and intuitive to allow retrieval by specifying a list of file paths.

Screenshots

No response

@MSalah73 MSalah73 added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Feb 4, 2025
@kemzeb kemzeb added the topic/api Concerns mainly the API label Feb 4, 2025
@silky1313
Copy link

I also have such a need. Do we need a new API to provide such functionality? I am also trying to write this API.

@wxiaoguang
Copy link
Contributor

Maybe this one? Add API endpoint to request contents of multiple files simultaniously #34139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/api Concerns mainly the API type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants