跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support
This is the documentation of 23.8.2, which is no longer the latest release. See the latest release.

Get an archive of a repository

GET
/repos/{owner}/{repo}/archive/{archive}
curl --request GET \
--url https://gitea.example.com/api/v1/repos/example/example/archive/example \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

archive
required
string

The git reference for download with attached archive format (e.g. master.zip)

Success

Media typeapplication/json

APINotFound is a not found empty response

Media typeapplication/json