Add API to create releases

This commit is contained in:
rubenwardy
2020-01-24 20:21:40 +00:00
parent 6f1472addb
commit 14faae3fd1
4 changed files with 97 additions and 4 deletions

View File

@@ -23,6 +23,19 @@ You can use the `/api/whoami` to check authentication.
* GET `/api/packages/` - See [Package Queries](#package-queries)
* GET `/api/packages/<username>/<name>/`
### Releases
* GET `/api/packages/<username>/<name>/releases/`
* POST `/api/packages/<username>/<name>/releases/`
* Requires authentication.
* `title`: human-readable name of the release.
* `method`: Must be `vcs`.
* `min_protocol`: minimum Minetest protocol version. See [Minetest](#minetest).
* `min_protocol`: maximum Minetest protocol version. See [Minetest](#minetest).
* If `vcs` release-creation method:
* `ref` - git reference.
### Topics
* GET `/api/topics/` - Supports [Package Queries](#package-queries), and the following two options: