Get a file or directory's contents
One step with Gitea. We can help you get access.
Look something up
Get a file or directory's contents
with Gitea · Software Construction Management
Use Gitea: its Gitea Repository API lets you get a file or directory's contents in a single step (GET /repos/{owner}/{repo}/contents/{filepath}). capabilities.work can help you get signed up and connected.
- How do I read a file's content and metadata, or list a subfolder, in a repo?
- Can I get the contents of a path as of an older branch or commit?
Say it to your AI assistant
- Get the contents of {filepath} in {owner}/{repo}.
- Show {filepath} from {owner}/{repo} as it was at ref {ref}.
For your developer
GET /repos/{owner}/{repo}/contents/{filepath} in Gitea Repository API. Full spec on APIs.io.