add qty param for gem/gem-purchasable item apidoc (#14219)

* add qty param for gem/gem-purchasable item

* fix(lint): remove extra whitespace

Co-authored-by: SabreCat <sabe@habitica.com>
This commit is contained in:
Adam Tommasi
2022-10-07 17:33:38 -04:00
committed by GitHub
parent 3f9d55254e
commit 137f7d53dc

View File

@@ -978,6 +978,10 @@ api.disableClasses = {
,"food","quests","gear"} type Type of item to purchase.
* @apiParam (Path) {String} key Item's key (use "gem" for purchasing gems)
*
* @apiParam (Body) {Integer} [quantity=1] Count of items to buy.
* Defaults to 1 and is ignored
* for items where quantity is irrelevant.
*
* @apiSuccess {Object} data.items user.items
* @apiSuccess {Number} data.balance user.balance
* @apiSuccess {String} message Success message