Download raw content
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/raw/{ref}/{filepath} \
--header 'Authorization: <api-key>'<string>Repositories
Download raw content
GET
/
repos
/
{owner}
/
{repo}
/
raw
/
{ref}
/
{filepath}
Download raw content
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/raw/{ref}/{filepath} \
--header 'Authorization: <api-key>'<string>Authorizations
Path Parameters
Response
Raw file content
The response is of type string.