Package API: Add option to return desc as hypertext

This commit is contained in:
rubenwardy
2023-12-16 00:46:11 +00:00
parent e6bba7d8a2
commit 8606f596f3
2 changed files with 12 additions and 2 deletions

View File

@@ -78,6 +78,9 @@ curl -X DELETE https://content.minetest.net/api/delete-token/ \
* GET `/api/packages/` (List)
* See [Package Queries](#package-queries)
* GET `/api/packages/<username>/<name>/` (Read)
* Query arguments
* `formspec_version`: Optional. If present, `long_description` is returned a hypertext (see /hypertext/ below).
* `include_images`: Optional, defaults to true. Only used if `formspec_version` is provided.
* PUT `/api/packages/<author>/<name>/` (Update)
* Requires authentication.
* JSON dictionary with any of these keys (all are optional, null to delete Nullables):