mirror of
https://github.com/gomods/athens
synced 2026-02-12 13:18:10 +00:00
* Add .info to upload payload everywhere else as well + Upload payload includes Info + CLI uploads `version.info` as blob to storage + Getter and Saver methods updated for all storages implemented + Migration updated to include Info column + Tests no longer check RevInfo, now checking for Info same as Zip + Updated docs * newline in .fizz * change RevInfo.Info to []byte + change to []byte instead of io.Reader + adjust tests to check for info byte contents directly + add error check for minio client GetObject `pkg/storage/minio/getter.go`
900 B
900 B
The Athens API
This page specifies the API that Athens implements.
The Proxy API
The Proxy API is what the vgo client uses to fetch modules. athens implements
all of the required APIs, but not the optional ones:
GET {base_path}/{module}/@t/yyyymmddhhmmss
GET {base_path}/{module}/@t/yyyymmddhhmmss/branch
Other APIs
Athens implements a few other APIs that you need to know about to make it useful:
POST /admin/upload/{base_path}/{module}/{version}
This lets you upload a new module, or a new version of an existing module. The request body should look like this:
{ "module": "bytes of the go.mod file", "zip": "bytes for the zipped source", "info": "bytes of the version.info file" }
GET /all
This gets all of the registered modules and their versions. This endpoint will be removed or significantly changed soon.