Repositories
Download raw content
get/repos/{owner}/{repo}/raw/{ref}/{filepath}
Request
- Base URLhttps://gogs.example.com/api/v1
- AuthAPI key in header Authorization
Path parameters
ownerstring required
Repository owner
repostring required
Repository name
refstring required
Branch, tag, or commit
filepathstring required
File path
Response
Raw file content
Changes
No recorded changes to this operation across all 3 revisions of this API.