API ReferenceGit
Get the contents of a file or directory
Get the contents of a file or directory in a repository
Path Parameters
repo*string
The repository ID.
Format
uuidpath*string|null
The path to the file or directory. Empty for root.
Query Parameters
ref?string
The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
Response Body
application/json
curl -X GET "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/contents/string"{
"name": "string",
"path": "string",
"sha": "string",
"size": 0,
"content": "string",
"type": "file"
}