Add validation to package API

This commit is contained in:
rubenwardy
2021-02-02 22:34:51 +00:00
parent 551996ca14
commit ca58c70206
5 changed files with 116 additions and 33 deletions

View File

@@ -24,7 +24,7 @@ Tokens can be attained by visiting [Settings > API Tokens](/user/tokens/).
* PUT `/api/packages/<author>/<name>/` (Update)
* JSON dictionary with any of these keys (all are optional):
* `title`: Human-readable title.
* `short_desc`
* `short_description`
* `desc`
* `type`: One of `GAME`, `MOD`, `TXP`.
* `license`: A license name.