Download archive
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/archive/{archive} \
--header 'Authorization: <api-key>'"<string>"Repositories
Download archive
GET
/
repos
/
{owner}
/
{repo}
/
archive
/
{archive}
Download archive
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/archive/{archive} \
--header 'Authorization: <api-key>'"<string>"Authorizations
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Path Parameters
Repository owner
Repository name
Ref and format, e.g. master.zip or master.tar.gz
Response
Archive file
The response is of type file.