From ad191c2c5ccf00691295a574acef48c615703a1f Mon Sep 17 00:00:00 2001 From: Alys Date: Wed, 16 May 2018 20:45:35 +1000 Subject: [PATCH] change apidoc to explain that the equip route also unequips --- website/server/controllers/api-v3/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/server/controllers/api-v3/user.js b/website/server/controllers/api-v3/user.js index a51da7602d..e987721c11 100644 --- a/website/server/controllers/api-v3/user.js +++ b/website/server/controllers/api-v3/user.js @@ -948,12 +948,12 @@ api.hatch = { }; /** - * @api {post} /api/v3/user/equip/:type/:key Equip an item + * @api {post} /api/v3/user/equip/:type/:key Equip or unequip an item * @apiName UserEquip * @apiGroup User * - * @apiParam (Path) {String="mount","pet","costume","equipped"} type The type of item to equip - * @apiParam (Path) {String} key The item to equip + * @apiParam (Path) {String="mount","pet","costume","equipped"} type The type of item to equip or unequip + * @apiParam (Path) {String} key The item to equip or unequip * * @apiParamExample {URL} Example-URL * https://habitica.com/api/v3/user/equip/equipped/weapon_warrior_2