curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/raw/{ref}/{filepath} \
--header 'Authorization: <api-key>'"<string>"curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/raw/{ref}/{filepath} \
--header 'Authorization: <api-key>'"<string>"Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Repository owner
Repository name
Branch, tag, or commit
File path
Raw file content
The response is of type string.