Using the repo archive API


I’m trying to figure out the correct API call to download an archive.

I’m using gogs on centos7 with mariadb10.

I’ve tried a number of variations, lates is something like:

curl -v -H “Authorization: token $GOGS_TOKEN” ‘

I’m getting 404s so far for everything. Search works so I know my token it’s coming through OK.


Found the errors.

curl -v -H “Authorization: token $GOGS_TOKEN” ‘’

The username was incorrectly included, it needed the repo owner only. Also it’s tar.gz - not tgz.